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