Update lighttpd configuration.
Explicitly set the document root, in case the default gets changed.
This commit is contained in:
parent
877d1169fa
commit
de10008bdb
1 changed files with 3 additions and 1 deletions
|
|
@ -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 = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue