Mercurial > hg > rlgallery-misc
comparison 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 |
comparison
equal
deleted
inserted
replaced
98:36d6787f7aed | 99:801ec25cc0af |
---|---|
2 # Include this file in your lighttpd.conf | 2 # Include this file in your lighttpd.conf |
3 | 3 |
4 # IPv4 and IPv6 addresses need to be explicitly specified | 4 # IPv4 and IPv6 addresses need to be explicitly specified |
5 server.bind = "0.0.0.0" | 5 server.bind = "0.0.0.0" |
6 $SERVER["socket"] == "[::]:80" { } | 6 $SERVER["socket"] == "[::]:80" { } |
7 | |
8 server.document-root := server_root + "/lighttpd" | |
7 | 9 |
8 # Ensure index.cgi is in the list | 10 # Ensure index.cgi is in the list |
9 index-file.names += ( | 11 index-file.names += ( |
10 "index.xhtml", "index.html", "index.htm", "index.cgi" | 12 "index.xhtml", "index.html", "index.htm", "index.cgi" |
11 ) | 13 ) |
23 | 25 |
24 # Don't send CGI scripts or python scripts as static files | 26 # Don't send CGI scripts or python scripts as static files |
25 static-file.exclude-extensions += ( ".cgi", ".py" ) | 27 static-file.exclude-extensions += ( ".cgi", ".py" ) |
26 | 28 |
27 # Use the custom 404 error page | 29 # Use the custom 404 error page |
28 server.error-handler-404 = "404.html" | 30 server.error-handler-404 = "/404.html" |
29 | 31 |
30 # Set a UTF-8 environment, or Python 3 won't work | 32 # Set a UTF-8 environment, or Python 3 won't work |
31 setenv.add-environment = ( | 33 setenv.add-environment = ( |
32 "LC_CTYPE" => "en_US.utf8" | 34 "LC_CTYPE" => "en_US.utf8" |
33 ) | 35 ) |