From de10008bdb91594fa308c04e5ee41ddf9f24ef7f Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Sun, 2 Jan 2022 20:40:05 -0500 Subject: [PATCH] Update lighttpd configuration. Explicitly set the document root, in case the default gets changed. --- lighttpd/rlgallery.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lighttpd/rlgallery.conf b/lighttpd/rlgallery.conf index cd8b2dd..f2ab66c 100644 --- a/lighttpd/rlgallery.conf +++ b/lighttpd/rlgallery.conf @@ -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 @@ $HTTP["host"] =~ "^(.*)$" { 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 = (