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