Skip to content

Instantly share code, notes, and snippets.

@dimisdas
Last active December 10, 2015 20:08
Show Gist options
  • Save dimisdas/4486391 to your computer and use it in GitHub Desktop.
Save dimisdas/4486391 to your computer and use it in GitHub Desktop.
Lighttpd default configuration file
## Lighttpd Configuration File ##
# Default Document Root
# This is the site that the server will revert to incase of an unknown Virtual Host
server.document-root = "/var/www/"
server.modules = (
"mod_access",
"mod_accesslog",
"mod_fastcgi",
"mod_rewrite",
"mod_auth"
)
# Listening Port
server.port = 80
# Lighttpd User and Group
server.username = "lighttpd"
server.groupname = "lighttpd"
# Acceptable Mime types
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png"
)
static-file.exclude-extensions = (".fcgi", ".php", ".rb", "~", ".inc")
index-file.names = ("index.html", "index.php")
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket"
)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment