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 = (