Annotation of embedaddon/lighttpd/tests/fastcgi-13.conf, revision 1.1.1.2
1.1 misho 1: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
2:
3: debug.log-request-header = "enable"
4: debug.log-response-header = "enable"
5: debug.log-request-handling = "enable"
6:
7: ## bind to port (default: 80)
8: server.port = 2048
9:
10: ## bind to localhost (default: all interfaces)
11: server.bind = "localhost"
12: server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
13: server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
14: server.name = "www.example.org"
15: server.tag = "Apache 1.3.29"
16:
17: server.dir-listing = "enable"
18:
1.1.1.2 ! misho 19: server.modules = (
! 20: "mod_rewrite",
! 21: "mod_access",
! 22: "mod_auth",
! 23: "mod_status",
! 24: "mod_expire",
! 25: "mod_redirect",
! 26: "mod_fastcgi",
! 27: "mod_cgi",
! 28: "mod_compress",
! 29: "mod_accesslog"
! 30: )
! 31:
! 32: server.indexfiles = (
! 33: "index.php",
! 34: "index.html",
! 35: "index.htm",
! 36: "default.htm",
! 37: )
1.1 misho 38:
39: ######################## MODULE CONFIG ############################
40:
41:
1.1.1.2 ! misho 42: accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
1.1 misho 43:
1.1.1.2 ! misho 44: mimetype.assign = (
! 45: ".png" => "image/png",
! 46: ".jpg" => "image/jpeg",
! 47: ".jpeg" => "image/jpeg",
! 48: ".gif" => "image/gif",
! 49: ".html" => "text/html",
! 50: ".htm" => "text/html",
! 51: ".pdf" => "application/pdf",
! 52: ".swf" => "application/x-shockwave-flash",
! 53: ".spl" => "application/futuresplash",
! 54: ".txt" => "text/plain",
! 55: ".tar.gz" => "application/x-tgz",
! 56: ".tgz" => "application/x-tgz",
! 57: ".gz" => "application/x-gzip",
! 58: ".c" => "text/plain",
! 59: ".conf" => "text/plain",
! 60: )
! 61:
! 62: compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
! 63: compress.filetype = (
! 64: "text/plain",
! 65: "text/html",
! 66: )
! 67:
! 68: fastcgi.debug = 0
! 69: fastcgi.server = (
! 70: ".php" => (
! 71: "grisu" => (
! 72: "host" => "127.0.0.1",
! 73: "port" => 1048,
! 74: "bin-path" => env.PHP,
! 75: "bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
! 76: ),
! 77: ),
! 78: )
! 79:
! 80: cgi.assign = (
! 81: ".pl" => env.PERL,
! 82: ".cgi" => env.PERL,
! 83: )
1.1 misho 84:
1.1.1.2 ! misho 85: auth.backend = "plain"
1.1 misho 86: auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
87: auth.backend.plain.groupfile = "lighttpd.group"
88:
89: auth.backend.ldap.hostname = "localhost"
90: auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
91: auth.backend.ldap.filter = "(uid=$)"
92:
1.1.1.2 ! misho 93: auth.require = (
! 94: "/server-status" => (
! 95: "method" => "digest",
! 96: "realm" => "download archiv",
! 97: "require" => "group=www|user=jan|host=192.168.2.10",
! 98: ),
! 99: "/auth.php" => (
! 100: "method" => "basic",
! 101: "realm" => "download archiv",
! 102: "require" => "user=jan",
! 103: ),
! 104: "/server-config" => (
! 105: "method" => "basic",
! 106: "realm" => "download archiv",
! 107: "require" => "group=www|user=jan|host=192.168.2.10",
! 108: ),
! 109: )
! 110:
! 111: url.access-deny = (
! 112: "~",
! 113: ".inc",
! 114: )
! 115:
! 116: url.redirect = (
! 117: "^/redirect/$" => "http://localhost:2048/",
! 118: )
! 119:
! 120: expire.url = (
! 121: "/buggy/" => "access 2 hours",
! 122: "/asdhas/" => "access plus 1 seconds 2 minutes",
! 123: )
1.1 misho 124:
125: #### status module
1.1.1.2 ! misho 126: status.status-url = "/server-status"
! 127: status.config-url = "/server-config"
1.1 misho 128:
129: $HTTP["host"] == "vvv.example.org" {
1.1.1.2 ! misho 130: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
1.1 misho 131: }
132:
133: $HTTP["host"] == "zzz.example.org" {
1.1.1.2 ! misho 134: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
! 135: server.name = "zzz.example.org"
1.1 misho 136: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>