Skip to content

Instantly share code, notes, and snippets.

/lighttpd.conf Secret

Created December 7, 2017 13:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/23b1675dc43af7e66422b998d75d6384 to your computer and use it in GitHub Desktop.
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