Open hanscees opened 8 months ago
server.port = 80
# unnecessary; this is the lighttpd default
server.bind = "0.0.0.0"
# unnecessary; this is the lighttpd default
unnecessary; lighttpd has default mimetype.assign
for common web mime types which is larger than this list
# mimetype mapping
mimetype.assign = (
".pdf" => "application/pdf",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar"
)
The sample config does not use mod_access, mod_rewrite, or mod_auth. The only one used is mod_accesslog, and so this
server.modules = (
"mod_access",
# "mod_status",
"mod_accesslog",
# "mod_fastcgi",
"mod_rewrite",
"mod_auth"
)
could be replaced by
server.modules += ("mod_accesslog")
Whitespace should be consistent (and excess whitespace at end of lines removed)
Commented lines such as #server.error-handler-404 = "/e404.php"
or # "mod_status",
or # "mod_fastcgi",
should be removed.
Hi,
thanks for the docker image of this webserver.
it took me some time to find a decent config to use and a decent docker-compose file that works. So I will share them here to save others some time
If there are mistakes in them please do point them out. I am using a totally static website.
docker-compose.yml
and config file
and to make all files using the yml file above