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