Basic auth protection to allow ACME Challenge

#1
HI, I have the following code set up in my CyberPanel vhost.conf file:


Code:
# START-HTTP-AUTH
context / {
  realm ProtectedArea
}

realm ProtectedArea {
  userDB {
    location conf/vhosts/<sitename>/htpasswd
  }
}
# END-HTTP-AUTH
How would I modify this to allow Letsencrypt to perform the .well-known/acme-challenge fetch? (Basically to remove basic auth for that route)?

Thank you in advance for any help.
 
#2
Try setting a .well-known context in virtual host see if it should helps.
Example:
Code:
context /.well-known/ { 
  location                /var/www/html/
  allowBrowse             1 
  addDefaultCharset       off
}
Please substitute the location value to your site's path.
 
Top