mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
.well-known directory deleted after certificate renew #196
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 @ivancarlosti on 8/16/2024
CloudPanel version(s) affected
2.2.0
2.4.0
2.4.2
Description
.well-known directory is deleted from virtual hosts after certificate renew. This folder is used for several services as standard path, so a workaround is not the proper solution for that, it's not only used to issue certificates.
As example, there's a list of services that uses this folder as standard path:
In some cases, CORS rules is also required, what makes rewrite paths more difficult
It's also well documented in IANA several usages for this folder: https://www.iana.org/assignments/well-known-uris/
Please fix this 😟 look Possible Solution section below.
How to reproduce
Store anything on .well-known folder
Renew certificate
.well-known folder is gone
Possible Solution
Let's Encrypt only uses the path .well-known/acme-challenge, so please just delete acme-challenge subfolder.
Additional Context
No response