diff lighttpd/rlgallery.conf @ 99:801ec25cc0af

Update lighttpd configuration. Explicitly set the document root, in case the default gets changed.
author John "Elwin" Edwards
date Sun, 02 Jan 2022 20:40:05 -0500
parents 36d6787f7aed
children
line wrap: on
line diff
--- a/lighttpd/rlgallery.conf	Tue Nov 02 21:10:10 2021 -0400
+++ b/lighttpd/rlgallery.conf	Sun Jan 02 20:40:05 2022 -0500
@@ -5,6 +5,8 @@
 server.bind = "0.0.0.0"
 $SERVER["socket"] == "[::]:80" {  }
 
+server.document-root := server_root + "/lighttpd"
+
 # Ensure index.cgi is in the list
 index-file.names += (
   "index.xhtml", "index.html", "index.htm", "index.cgi"
@@ -25,7 +27,7 @@
 static-file.exclude-extensions += ( ".cgi", ".py" )
 
 # 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
 setenv.add-environment = (