Update lighttpd configuration.

Explicitly set the document root, in case the default gets changed.
This commit is contained in:
John "Elwin" Edwards 2022-01-02 20:40:05 -05:00
parent 877d1169fa
commit de10008bdb

View file

@ -5,6 +5,8 @@
server.bind = "0.0.0.0" server.bind = "0.0.0.0"
$SERVER["socket"] == "[::]:80" { } $SERVER["socket"] == "[::]:80" { }
server.document-root := server_root + "/lighttpd"
# Ensure index.cgi is in the list # Ensure index.cgi is in the list
index-file.names += ( index-file.names += (
"index.xhtml", "index.html", "index.htm", "index.cgi" "index.xhtml", "index.html", "index.htm", "index.cgi"
@ -25,7 +27,7 @@ $HTTP["host"] =~ "^(.*)$" {
static-file.exclude-extensions += ( ".cgi", ".py" ) static-file.exclude-extensions += ( ".cgi", ".py" )
# Use the custom 404 error page # Use the custom 404 error page
server.error-handler-404 = "404.html" server.error-handler-404 = "/404.html"
# Set a UTF-8 environment, or Python 3 won't work # Set a UTF-8 environment, or Python 3 won't work
setenv.add-environment = ( setenv.add-environment = (