--- embedaddon/lighttpd/tests/fastcgi-10.conf 2013/10/14 10:32:47 1.1.1.1 +++ embedaddon/lighttpd/tests/fastcgi-10.conf 2016/11/02 10:35:00 1.1.1.2 @@ -10,81 +10,72 @@ server.breakagelog = env.SRCDIR + "/tmp/lightt server.name = "www.example.org" server.tag = "Apache 1.3.29" -## -## Format: .html -## -> ..../status-404.html for 'File not found' -#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-" - server.dir-listing = "enable" -#server.event-handler = "linux-sysepoll" -#server.event-handler = "linux-rtsig" +server.modules = ( + "mod_rewrite", + "mod_access", + "mod_auth", + "mod_status", + "mod_expire", + "mod_redirect", + "mod_fastcgi", + "mod_cgi", + "mod_compress", + "mod_accesslog", +) -#server.modules.path = "" -server.modules = ( - "mod_rewrite", - "mod_access", - "mod_auth", -# "mod_httptls", - "mod_status", - "mod_expire", -# "mod_simple_vhost", - "mod_redirect", -# "mod_evhost", -# "mod_localizer", - "mod_fastcgi", - "mod_cgi", - "mod_compress", - "mod_accesslog" ) +server.indexfiles = ( + "index.php", + "index.html", + "index.htm", + "default.htm", +) -server.indexfiles = ( "index.php", "index.html", - "index.htm", "default.htm" ) - - ######################## MODULE CONFIG ############################ +accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" -accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" +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" ) +compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/" +compress.filetype = ( + "text/plain", + "text/html", +) -compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/" -compress.filetype = ("text/plain", "text/html") +fastcgi.debug = 0 +fastcgi.server = ( + ".php" => ( + "grisu" => ( + "host" => "127.0.0.1", + "port" => 1026, + ), + ), +) -fastcgi.debug = 0 -fastcgi.server = ( ".php" => ( - "grisu" => ( - "host" => "127.0.0.1", - "port" => 1026 - ) - ) - ) - +cgi.assign = ( + ".pl" => env.PERL, + ".cgi" => env.PERL, +) -cgi.assign = ( ".pl" => "/usr/bin/perl", - ".cgi" => "/usr/bin/perl", - ".py" => "/usr/bin/python" ) - - - -ssl.engine = "disable" -# ssl.pemfile = "server.pem" - -auth.backend = "plain" +auth.backend = "plain" auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user" auth.backend.plain.groupfile = "lighttpd.group" @@ -92,47 +83,47 @@ auth.backend.ldap.hostname = "localhost" auth.backend.ldap.base-dn = "dc=my-domain,dc=com" auth.backend.ldap.filter = "(uid=$)" -auth.require = ( "/server-status" => - ( - "method" => "digest", - "realm" => "download archiv", -# "require" => ("group=www", "user=jan", "host=192.168.2.10") - "require" => "group=www|user=jan|host=192.168.2.10" - ), - "/auth.php" => - ( - "method" => "basic", - "realm" => "download archiv", -# "require" => ("group=www", "user=jan", "host=192.168.2.10") - "require" => "user=jan" - ), - "/server-config" => - ( - "method" => "basic", - "realm" => "download archiv", -# "require" => ("group=www", "user=jan", "user=weigon", "host=192.168.2.10") - "require" => "group=www|user=jan|host=192.168.2.10" - ) - ) +auth.require = ( + "/server-status" => ( + "method" => "digest", + "realm" => "download archiv", + "require" => "group=www|user=jan|host=192.168.2.10", + ), + "/auth.php" => ( + "method" => "basic", + "realm" => "download archiv", + "require" => "user=jan", + ), + "/server-config" => ( + "method" => "basic", + "realm" => "download archiv", + "require" => "group=www|user=jan|host=192.168.2.10", + ), +) -url.access-deny = ( "~", ".inc") +url.access-deny = ( + "~", + ".inc", +) -url.redirect = ( "^/redirect/$" => "http://localhost:2048/" ) +url.redirect = ( + "^/redirect/$" => "http://localhost:2048/", +) -expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes") +expire.url = ( + "/buggy/" => "access 2 hours", + "/asdhas/" => "access plus 1 seconds 2 minutes", +) -#cache.cache-dir = "/home/weigon/wwwroot/cache/" - #### status module -status.status-url = "/server-status" -status.config-url = "/server-config" +status.status-url = "/server-status" +status.config-url = "/server-config" $HTTP["host"] == "vvv.example.org" { - server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" + server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" } $HTTP["host"] == "zzz.example.org" { - server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" - server.name = "zzz.example.org" + server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" + server.name = "zzz.example.org" } -