--- embedaddon/lighttpd/tests/lowercase.conf 2013/10/14 10:32:47 1.1.1.1 +++ embedaddon/lighttpd/tests/lowercase.conf 2016/11/02 10:35:00 1.1.1.2 @@ -12,69 +12,90 @@ server.force-lowercase-filenames = "enable" server.dir-listing = "enable" -server.modules = ( - "mod_rewrite", - "mod_setenv", - "mod_secdownload", - "mod_access", - "mod_auth", - "mod_status", - "mod_expire", - "mod_redirect", - "mod_fastcgi", - "mod_cgi" ) +server.modules = ( + "mod_rewrite", + "mod_setenv", + "mod_secdownload", + "mod_access", + "mod_auth", + "mod_status", + "mod_expire", + "mod_redirect", + "mod_fastcgi", + "mod_cgi", +) -server.indexfiles = ( "index.php", "index.html", - "index.htm", "default.htm" ) +server.indexfiles = ( + "index.php", + "index.html", + "index.htm", + "default.htm", +) ######################## MODULE CONFIG ############################ -mimetype.assign = ( ".png" => "image/png", - ".jpg" => "image/jpeg", - ".jpeg" => "image/jpeg", - ".gif" => "image/gif", - ".html" => "text/html", - ".htm" => "text/html", - ".pdf" => "application/pdf", - ".swf" => "application/x-shockwave-flash", - ".spl" => "application/futuresplash", - ".txt" => "text/plain", - ".tar.gz" => "application/x-tgz", - ".tgz" => "application/x-tgz", - ".gz" => "application/x-gzip", - ".c" => "text/plain", - ".conf" => "text/plain" ) +mimetype.assign = ( + ".png" => "image/png", + ".jpg" => "image/jpeg", + ".jpeg" => "image/jpeg", + ".gif" => "image/gif", + ".html" => "text/html", + ".htm" => "text/html", + ".pdf" => "application/pdf", + ".swf" => "application/x-shockwave-flash", + ".spl" => "application/futuresplash", + ".txt" => "text/plain", + ".tar.gz" => "application/x-tgz", + ".tgz" => "application/x-tgz", + ".gz" => "application/x-gzip", + ".c" => "text/plain", + ".conf" => "text/plain", +) -fastcgi.debug = 0 -fastcgi.server = ( ".php" => ( ( "host" => "127.0.0.1", "port" => 1026, "broken-scriptfilename" => "enable" ) ), - "/prefix.fcgi" => ( ( "host" => "127.0.0.1", "port" => 1026, "check-local" => "disable", "broken-scriptfilename" => "enable" ) ) - ) +fastcgi.debug = 0 +fastcgi.server = ( + ".php" => ( ( + "host" => "127.0.0.1", + "port" => 1026, + "broken-scriptfilename" => "enable", + ) ), + "/prefix.fcgi" => ( ( + "host" => "127.0.0.1", + "port" => 1026, + "check-local" => "disable", + "broken-scriptfilename" => "enable", + ) ), +) +cgi.assign = ( + ".pl" => env.PERL, + ".cgi" => env.PERL, +) -cgi.assign = ( ".pl" => "/usr/bin/perl", - ".cgi" => "/usr/bin/perl", - ".py" => "/usr/bin/python" ) - -auth.backend = "plain" +auth.backend = "plain" auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user" auth.backend.htpasswd.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.htpasswd" $HTTP["host"] == "lowercase-auth" { - auth.require = ( "/image.jpg" => - ( - "method" => "digest", - "realm" => "download archiv", - "require" => "valid-user" - ) - ) + auth.require = ( + "/image.jpg" => ( + "method" => "digest", + "realm" => "download archiv", + "require" => "valid-user", + ), + ) } $HTTP["host"] == "lowercase-deny" { - url.access-deny = ( ".jpg") + url.access-deny = ( + ".jpg", + ) } $HTTP["host"] == "lowercase-exclude" { - static-file.exclude-extensions = ( ".jpg" ) + static-file.exclude-extensions = ( + ".jpg", + ) }