Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server.document-root = "/my/document/root/"
- server.port = 61234
- #https://redmine.lighttpd.net/projects/1/wiki/Docs_ModDirlisting
- dir-listing.activate = "enable"
- dir-listing.encoding = "utf-8"
- dir-listing.show-readme = "enable"
- dir-listing.external-css = "/slides/dir.css"
- #We want to see dotfiles. Users might want to share their config files. This is the default, but we make it explicit
- dir-listing.hide-dotfiles = "disable"
- #Don't allow network or internet access. Local is enough for apache htaccess proxy
- server.bind = "localhost"
- mimetype.assign = (
- ".html" => "text/html",
- ".txt" => "text/plain",
- ".jpg" => "image/jpeg",
- ".png" => "image/png",
- ".gif" => "image/gif",
- ".pdf" => "application/pdf",
- ".js" => "application/javascript",
- ".css" => "text/css",
- ".svg" => "image/svg+xml",
- ".mp3" => "audio/mpeg",
- ".ogg" => "audio/ogg",
- ".opus" => "audio/ogg",
- ".flac" => "audio/flac",
- ".wav" => "audio/x-wav",
- )
- #Work around problems with larger PDF files
- $HTTP["url"] =~ "\.(?i:pdf)$" {
- server.range-requests = "disable"
- }
- static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc", ".py", "ini", )
- index-file.names = ( "index.html", "index.pdf")
- #No. error is error.
- #server.error-handler-404 = "/new.html"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement