Annotation of embedaddon/lighttpd/tests/fastcgi-13.conf, revision 1.1.1.1
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: ##
18: ## Format: <errorfile-prefix><status>.html
19: ## -> ..../status-404.html for 'File not found'
20: #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
21:
22: server.dir-listing = "enable"
23:
24: #server.event-handler = "linux-sysepoll"
25: #server.event-handler = "linux-rtsig"
26:
27: #server.modules.path = ""
28: server.modules = (
29: "mod_rewrite",
30: "mod_access",
31: "mod_auth",
32: # "mod_httptls",
33: "mod_status",
34: "mod_expire",
35: # "mod_simple_vhost",
36: "mod_redirect",
37: # "mod_evhost",
38: # "mod_localizer",
39: "mod_fastcgi",
40: "mod_cgi",
41: "mod_compress",
42: "mod_accesslog" )
43:
44: server.indexfiles = ( "index.php", "index.html",
45: "index.htm", "default.htm" )
46:
47: #,-- only root can use these options
48: #|
49: #|# chroot() to directory (default: no chroot() )
50: #| server.chroot /
51: #|# change uid to <uid> (default: don't care)
52: #| server.userid wwwrun
53: #|# change uid to <uid> (default: don't care)
54: #| server.groupid wwwrun
55: #|
56: #`--
57:
58:
59: ######################## MODULE CONFIG ############################
60:
61:
62: accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
63:
64: mimetype.assign = ( ".png" => "image/png",
65: ".jpg" => "image/jpeg",
66: ".jpeg" => "image/jpeg",
67: ".gif" => "image/gif",
68: ".html" => "text/html",
69: ".htm" => "text/html",
70: ".pdf" => "application/pdf",
71: ".swf" => "application/x-shockwave-flash",
72: ".spl" => "application/futuresplash",
73: ".txt" => "text/plain",
74: ".tar.gz" => "application/x-tgz",
75: ".tgz" => "application/x-tgz",
76: ".gz" => "application/x-gzip",
77: ".c" => "text/plain",
78: ".conf" => "text/plain" )
79:
80: compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
81: compress.filetype = ("text/plain", "text/html")
82:
83: fastcgi.debug = 0
84: fastcgi.server = ( ".php" => (
85: "grisu" => (
86: "host" => "127.0.0.1",
87: "port" => 1048,
88: "bin-path" => env.PHP,
89: "bin-copy-environment" => ( "PATH", "SHELL", "USER" ),
90: )
91: )
92: )
93:
94:
95: cgi.assign = ( ".pl" => "/usr/bin/perl",
96: ".cgi" => "/usr/bin/perl",
97: ".py" => "/usr/bin/python" )
98:
99:
100:
101: ssl.engine = "disable"
102: # ssl.pemfile = "server.pem"
103:
104: auth.backend = "plain"
105: auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
106: auth.backend.plain.groupfile = "lighttpd.group"
107:
108: auth.backend.ldap.hostname = "localhost"
109: auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
110: auth.backend.ldap.filter = "(uid=$)"
111:
112: auth.require = ( "/server-status" =>
113: (
114: "method" => "digest",
115: "realm" => "download archiv",
116: # "require" => ("group=www", "user=jan", "host=192.168.2.10")
117: "require" => "group=www|user=jan|host=192.168.2.10"
118: ),
119: "/auth.php" =>
120: (
121: "method" => "basic",
122: "realm" => "download archiv",
123: # "require" => ("group=www", "user=jan", "host=192.168.2.10")
124: "require" => "user=jan"
125: ),
126: "/server-config" =>
127: (
128: "method" => "basic",
129: "realm" => "download archiv",
130: # "require" => ("group=www", "user=jan", "user=weigon", "host=192.168.2.10")
131: "require" => "group=www|user=jan|host=192.168.2.10"
132: )
133: )
134:
135: url.access-deny = ( "~", ".inc")
136:
137: url.redirect = ( "^/redirect/$" => "http://localhost:2048/" )
138:
139: expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
140:
141: #cache.cache-dir = "/home/weigon/wwwroot/cache/"
142:
143: #### status module
144: status.status-url = "/server-status"
145: status.config-url = "/server-config"
146:
147: $HTTP["host"] == "vvv.example.org" {
148: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
149: }
150:
151: $HTTP["host"] == "zzz.example.org" {
152: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
153: server.name = "zzz.example.org"
154: }
155:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>