I was having ssl issues and after following your SSL troubleshooting guide at How to fix SSL issues in CyberPanel - Docs - CyberPanel Community I see none of my sites have context /.well-known/acme-challenge
under vhost config
full code:
context /.well-known/acme-challenge {
location /usr/local/lsws/Example/html/.well-known/acme-challenge
allowBrowse 1
rewrite {
}
addDefaultCharset off
phpIniOverride {
}
}
Should I manually add that to vhost config of every site hosted?
If that’s the case, an automated tool would be great.
tmoore
2
Yes you need to add manually.
Cyberpanel team changed it on the installer but i think they never updated the upgrade script regarding that.
For the old sites if it is not getting after update you have to add that in you host manually
tmoore
4
sh <(curl https://raw.githubusercontent.com/tbaldur/cyberpanel-mods/main/fix_ssl_missing_context.sh || wget -O - https://raw.githubusercontent.com/tbaldur/cyberpanel-mods/main/fix_ssl_missing_context.sh)
There. If it can’t find “/usr/local/lsws/Example/html/.well-known/acme-challenge” on the vhost config, it will write all the required context.
![imagem](https://community.cyberpanel.net/uploads/default/original/2X/1/1af409c5fcd1325f16f0863edd75a5fce7b0ae87.png)
It will fix ALL vhosts.
3 Likes
![jhdjhddjhs](https://community.cyberpanel.net/uploads/default/original/2X/0/03dbf4afd019b2acf25d24b668af56bae09706b7.jpeg)
Mines is empty, is that a normal output?
tmoore
6
There’s no output. It just adds the context if it is missing.
system
Closed
8
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.