mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
.well-known Directory gets deleted automatically
#258
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vreoo on 3/12/2024
CloudPanel version(s) affected
2.4.0
Description
On our single WordPress Website, we created
.well-knownDirectory inside ourhtdocs/<site_name>/.well-knownand the only files we need inside it is theassetlinks.jsonfor Android's Deeplinks, andapple-app-site-associationfor iOS Deeplinks.After some time we begin to notice that the deeplinks don't work anymore, and when we check we discover that the whole
.well-knowndirectory is deleted from the server under the same path I provided previously (htdocs/<site_name>/.well-known).We are not sure what is the reason behind this, but after a little research, we knew that a corn job related to the certificate renewal is causing this to happen whenever it runs. We don't have much experience in this regard so we didn't mess around with any configurations or files since we might cause more issues than solving the one we have already.
While we were investigating we noticed a configuration line in our Vhost (knowing we didn't mess up or change anything inside it) regarding the
.well-knowndirectory which says:It's worth mentioning that there is a
.well-knowndirectory under the default path~/that doesn't get deleted or removed but it's not visible to Google Play or iOS when they try to verify the files associated with this directory. Since they require for the verification that these files are accessible (readable) via:https://<site_name>/.well-known/assetlinks.jsonand the same for the iOS conf file I mentioned at the beginning. So the directory under the default path is not much of a use for us so we don't use instead we create it under the htdocs of our website which is the one that gets deleted.How to reproduce
1- Create
.well-knowndirectory underhtodcs/<site_name>/.well-known2- A cronjob runs after x amount of time (possibly every month or so, not sure tbh)
3- check for the
.well-knowndir, It's missing!4- Re-create the folder again
...
Possible Solution
No idea! :(
Additional Context
No response