copr: stg-backend: fix lighttpd config for certbot

- server.document-root is not needed /.well-known/
- alias.url needs mod_alias loaded
This commit is contained in:
Pavel Raiskup 2019-05-15 10:24:26 +02:00
parent 61b012de95
commit 49a2ca17a7

View file

@ -77,6 +77,7 @@ var.socket_dir = home_dir + "/sockets"
## Load the modules.
#include "modules.conf"
server.modules = (
"mod_alias", # for /.well-known/ alias
"mod_access",
"mod_setenv",
"mod_redirect",
@ -452,7 +453,6 @@ server.upload-dirs = ( "/var/tmp" )
# Used for letsencrypt validation
$HTTP["url"] =~ "^/.well-known/" {
server.document-root = "/var/certbot/public_html/.well-known/"
alias.url = ( "/.well-known/" => "/var/certbot/public_html/.well-known/" )
dir-listing.activate = "enable"
}