Annotation of embedaddon/lighttpd/tests/lowercase.conf, revision 1.1.1.2
1.1 misho 1: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
2:
3: ## bind to port (default: 80)
4: server.port = 2048
5:
6: ## bind to localhost (default: all interfaces)
7: server.bind = "localhost"
8: server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
9: server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
10:
11: server.force-lowercase-filenames = "enable"
12:
13: server.dir-listing = "enable"
14:
1.1.1.2 ! misho 15: server.modules = (
! 16: "mod_rewrite",
! 17: "mod_setenv",
! 18: "mod_secdownload",
! 19: "mod_access",
! 20: "mod_auth",
! 21: "mod_status",
! 22: "mod_expire",
! 23: "mod_redirect",
! 24: "mod_fastcgi",
! 25: "mod_cgi",
! 26: )
! 27:
! 28: server.indexfiles = (
! 29: "index.php",
! 30: "index.html",
! 31: "index.htm",
! 32: "default.htm",
! 33: )
1.1 misho 34:
35:
36: ######################## MODULE CONFIG ############################
37:
1.1.1.2 ! misho 38: mimetype.assign = (
! 39: ".png" => "image/png",
! 40: ".jpg" => "image/jpeg",
! 41: ".jpeg" => "image/jpeg",
! 42: ".gif" => "image/gif",
! 43: ".html" => "text/html",
! 44: ".htm" => "text/html",
! 45: ".pdf" => "application/pdf",
! 46: ".swf" => "application/x-shockwave-flash",
! 47: ".spl" => "application/futuresplash",
! 48: ".txt" => "text/plain",
! 49: ".tar.gz" => "application/x-tgz",
! 50: ".tgz" => "application/x-tgz",
! 51: ".gz" => "application/x-gzip",
! 52: ".c" => "text/plain",
! 53: ".conf" => "text/plain",
! 54: )
! 55:
! 56: fastcgi.debug = 0
! 57: fastcgi.server = (
! 58: ".php" => ( (
! 59: "host" => "127.0.0.1",
! 60: "port" => 1026,
! 61: "broken-scriptfilename" => "enable",
! 62: ) ),
! 63: "/prefix.fcgi" => ( (
! 64: "host" => "127.0.0.1",
! 65: "port" => 1026,
! 66: "check-local" => "disable",
! 67: "broken-scriptfilename" => "enable",
! 68: ) ),
! 69: )
! 70:
! 71: cgi.assign = (
! 72: ".pl" => env.PERL,
! 73: ".cgi" => env.PERL,
! 74: )
1.1 misho 75:
1.1.1.2 ! misho 76: auth.backend = "plain"
1.1 misho 77: auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
78:
79: auth.backend.htpasswd.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.htpasswd"
80:
81: $HTTP["host"] == "lowercase-auth" {
1.1.1.2 ! misho 82: auth.require = (
! 83: "/image.jpg" => (
! 84: "method" => "digest",
! 85: "realm" => "download archiv",
! 86: "require" => "valid-user",
! 87: ),
! 88: )
1.1 misho 89: }
90:
91: $HTTP["host"] == "lowercase-deny" {
1.1.1.2 ! misho 92: url.access-deny = (
! 93: ".jpg",
! 94: )
1.1 misho 95: }
96:
97: $HTTP["host"] == "lowercase-exclude" {
1.1.1.2 ! misho 98: static-file.exclude-extensions = (
! 99: ".jpg",
! 100: )
1.1 misho 101: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>