Skip to content

Instantly share code, notes, and snippets.

/lighttpd.conf Secret
Created Dec 7, 2017

Embed
What would you like to do?
server.document-root = "/opt/share/www/"
server.port = 80
dir-listing.encoding = "utf-8"
server.dir-listing = "enable"
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png"
)
server.modules = (
"mod_access",
"mod_fastcgi",
"mod_alias",
"mod_auth",
"mod_evasive",
"mod_redirect",
"mod_rewrite",
"mod_setenv",
"mod_usertrack",
)
url.rewrite-once = (
"/(css|files|img|js|php)/(.*)" => "/$1/$2",
"^([^\?]*)(\?(.+))?$" => "/index.php?url=$1&$3" // to take care of cakePHP
)
fastcgi.server = ( ".php" => ((
"bin-path" => "/opt/bin/php-cgi",
"socket" => "/opt/tmp/php.socket",
"max-procs" => 1,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "16",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"broken-scriptfilename" => "enable"
)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.