2018-11-28 13:09:46 +01:00
|
|
|
server.modules = ( "mod_access", "mod_accesslog" )
|
2016-11-13 20:35:50 +01:00
|
|
|
$HTTP["remoteip"] !~ "127.0.0.1" {
|
|
|
|
|
url.access-deny = ("") # prevent hosting to the network
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# change port and document-root accordingly
|
|
|
|
|
server.port = 5080
|
2018-11-28 13:13:22 +01:00
|
|
|
server.document-root = "/home/USER/Web/FSFE/local-build/fsfe.org"
|
|
|
|
|
server.errorlog = "/home/USER/Web/FSFE/local-build/lighttpd-fsfe.error.log"
|
|
|
|
|
accesslog.filename = "/home/USER/Web/FSFE/local-build/lighttpd-fsfe.access.log"
|
2016-11-13 20:35:50 +01:00
|
|
|
server.dir-listing = "enable"
|
|
|
|
|
dir-listing.encoding = "utf-8"
|
|
|
|
|
index-file.names = ("index.html", "index.en.html")
|
|
|
|
|
|
|
|
|
|
include_shell "./create-mime.assign.pl"
|
2018-11-28 13:09:46 +01:00
|
|
|
|
|
|
|
|
# Uncomment if your would like to enable php support
|
|
|
|
|
# server.modules += ( "mod_cgi" )
|
|
|
|
|
# cgi.assign = ( ".php" => "/usr/bin/php-cgi" )
|