diff options
Diffstat (limited to 'tests/lighttpd.conf')
-rw-r--r-- | tests/lighttpd.conf | 93 |
1 files changed, 28 insertions, 65 deletions
diff --git a/tests/lighttpd.conf b/tests/lighttpd.conf index a4b5cd8..8d38c09 100644 --- a/tests/lighttpd.conf +++ b/tests/lighttpd.conf @@ -1,19 +1,14 @@ debug.log-request-handling = "enable" -debug.log-request-header = "enable" -debug.log-response-header = "enable" debug.log-condition-handling = "enable" -server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" - -## 64 Mbyte ... nice limit -server.max-request-size = 65000 +server.document-root = "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/" +server.pid-file = "@SRCDIR@/tmp/lighttpd/lighttpd.pid" ## bind to port (default: 80) server.port = 2048 ## bind to localhost (default: all interfaces) server.bind = "localhost" -server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log" -server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log" +server.errorlog = "@SRCDIR@/tmp/lighttpd/logs/lighttpd.error.log" server.name = "www.example.org" server.tag = "Apache 1.3.29" @@ -23,17 +18,17 @@ server.dir-listing = "enable" #server.event-handler = "linux-rtsig" #server.modules.path = "" -server.modules = ( +server.modules = ( "mod_rewrite", "mod_setenv", "mod_secdownload", - "mod_access", + "mod_access", "mod_auth", # "mod_httptls", - "mod_status", + "mod_status", "mod_expire", "mod_simple_vhost", - "mod_redirect", + "mod_redirect", # "mod_evhost", # "mod_localizer", "mod_fastcgi", @@ -41,9 +36,9 @@ server.modules = ( "mod_compress", "mod_userdir", "mod_ssi", - "mod_accesslog" ) + "mod_accesslog" ) -server.indexfiles = ( "index.php", "index.html", +server.indexfiles = ( "index.php", "index.html", "index.htm", "default.htm" ) @@ -51,9 +46,9 @@ server.indexfiles = ( "index.php", "index.html", ssi.extension = ( ".shtml" ) -accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" +accesslog.filename = "@SRCDIR@/tmp/lighttpd/logs/lighttpd.access.log" -mimetype.assign = ( ".png" => "image/png", +mimetype.assign = ( ".png" => "image/png", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".gif" => "image/gif", @@ -70,7 +65,7 @@ mimetype.assign = ( ".png" => "image/png", ".conf" => "text/plain" ) $HTTP["host"] == "cache.example.org" { - compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/" + compress.cache-dir = "@SRCDIR@/tmp/lighttpd/cache/compress/" } compress.filetype = ("text/plain", "text/html") @@ -83,39 +78,39 @@ $HTTP["url"] =~ "\.pdf$" { } fastcgi.debug = 0 -fastcgi.server = ( ".php" => ( ( "host" => "127.0.0.1", "port" => 1026, "broken-scriptfilename" => "enable", "allow-x-send-file" => "enable" ) ), +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" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl", ".py" => "/usr/bin/python" ) - + userdir.include-user = ( "jan" ) userdir.path = "/" ssl.engine = "disable" -# ssl.pemfile = "server.pem" +ssl.pemfile = "server.pem" $HTTP["host"] == "auth-htpasswd.example.org" { auth.backend = "htpasswd" } auth.backend = "plain" -auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user" +auth.backend.plain.userfile = "@SRCDIR@/tmp/lighttpd/lighttpd.user" -auth.backend.htpasswd.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.htpasswd" +auth.backend.htpasswd.userfile = "@SRCDIR@/tmp/lighttpd/lighttpd.htpasswd" -auth.require = ( "/server-status" => - ( +auth.require = ( "/server-status" => + ( "method" => "digest", "realm" => "download archiv", "require" => "group=www|user=jan|host=192.168.2.10" ), - "/server-config" => - ( + "/server-config" => + ( "method" => "basic", "realm" => "download archiv", "require" => "valid-user" @@ -127,9 +122,7 @@ url.access-deny = ( "~", ".inc") url.rewrite = ( "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1", "^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1" ) -url.rewrite-if-not-file = ( "^(/rewrite/[^?]*)(?:\?(.*))?$" => "/indexfile/rewrite.php?file=$1&$2" ) - -expire.url = ( "/expire/access" => "access 2 hours", +expire.url = ( "/expire/access" => "access 2 hours", "/expire/modification" => "access plus 1 seconds 2 minutes") #cache.cache-dir = "/home/weigon/wwwroot/cache/" @@ -139,55 +132,29 @@ 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 = "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/" secdownload.secret = "verysecret" - secdownload.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" + secdownload.document-root = "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/" secdownload.uri-prefix = "/sec/" secdownload.timeout = 120 } $HTTP["host"] == "zzz.example.org" { - server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" + server.document-root = "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/" server.name = "zzz.example.org" - static-file.disable-pathinfo = "enable" -} - -$HTTP["host"] == "symlink.example.org" { - server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" - server.name = "symlink.example.org" - server.follow-symlink = "enable" -} - -$HTTP["host"] == "nosymlink.example.org" { - server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" - server.name = "symlink.example.org" - server.follow-symlink = "disable" } $HTTP["host"] == "no-simple.example.org" { - server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/123.example.org/pages/" + server.document-root = "@SRCDIR@/tmp/lighttpd/servers/123.example.org/pages/" server.name = "zzz.example.org" } $HTTP["host"] !~ "(no-simple\.example\.org)" { simple-vhost.document-root = "pages" - simple-vhost.server-root = env.SRCDIR + "/tmp/lighttpd/servers/" + simple-vhost.server-root = "@SRCDIR@/tmp/lighttpd/servers/" simple-vhost.default-host = "www.example.org" } -$HTTP["host"] == "auth.example.org" { - server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" - server.name = "auth.example.org" - auth.backend = "htpasswd" - auth.require = ( "" => - ( - "method" => "basic", - "realm" => "download archiv", - "require" => "valid-user" - ) - ) -} - $HTTP["host"] =~ "(vvv).example.org" { url.redirect = ( "^/redirect/$" => "http://localhost:2048/" ) } @@ -232,7 +199,3 @@ $HTTP["cookie"] =~ "empty-ref" { } -$HTTP["host"] == "etag.example.org" { - static-file.etags = "disable" - compress.filetype = () -} |