1: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
2:
3: ## bind to port (default: 80)
4: server.port = 2050
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 = "Proxy"
12:
13: server.dir-listing = "enable"
14:
15: server.modules = (
16: "mod_rewrite",
17: "mod_setenv",
18: "mod_access",
19: "mod_auth",
20: "mod_status",
21: "mod_expire",
22: "mod_simple_vhost",
23: "mod_redirect",
24: "mod_fastcgi",
25: "mod_proxy",
26: "mod_cgi",
27: "mod_compress",
28: "mod_userdir",
29: "mod_accesslog",
30: )
31:
32: server.indexfiles = (
33: "index.php",
34: "index.html",
35: "index.htm",
36: "default.htm",
37: )
38:
39: ######################## MODULE CONFIG ############################
40:
41: accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
42:
43: mimetype.assign = (
44: ".png" => "image/png",
45: ".jpg" => "image/jpeg",
46: ".jpeg" => "image/jpeg",
47: ".gif" => "image/gif",
48: ".html" => "text/html",
49: ".htm" => "text/html",
50: ".pdf" => "application/pdf",
51: ".swf" => "application/x-shockwave-flash",
52: ".spl" => "application/futuresplash",
53: ".txt" => "text/plain",
54: ".tar.gz" => "application/x-tgz",
55: ".tgz" => "application/x-tgz",
56: ".gz" => "application/x-gzip",
57: ".c" => "text/plain",
58: ".conf" => "text/plain",
59: )
60:
61: compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
62: compress.filetype = (
63: "text/plain",
64: "text/html",
65: )
66:
67: setenv.add-environment = (
68: "TRAC_ENV" => "foo",
69: )
70: setenv.add-request-header = (
71: "FOO" => "foo",
72: )
73: setenv.add-response-header = (
74: "BAR" => "foo",
75: )
76:
77: proxy.debug = 1
78: proxy.server = ( "" => (
79: "grisu" => (
80: "host" => "127.0.0.1",
81: "port" => 2048,
82: ),
83: ))
84:
85: cgi.assign = (
86: ".pl" => env.PERL,
87: ".cgi" => env.PERL,
88: )
89:
90: userdir.include-user = (
91: "jan",
92: )
93: userdir.path = "/"
94:
95: auth.backend = "plain"
96: auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
97: auth.backend.plain.groupfile = "lighttpd.group"
98:
99: auth.backend.ldap.hostname = "localhost"
100: auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
101: auth.backend.ldap.filter = "(uid=$)"
102:
103: auth.require = (
104: "/server-status" => (
105: "method" => "digest",
106: "realm" => "download archiv",
107: "require" => "group=www|user=jan|host=192.168.2.10",
108: ),
109: "/auth.php" => (
110: "method" => "basic",
111: "realm" => "download archiv",
112: "require" => "user=jan",
113: ),
114: "/server-config" => (
115: "method" => "basic",
116: "realm" => "download archiv",
117: "require" => "group=www|user=jan|host=192.168.2.10",
118: ),
119: )
120:
121: url.access-deny = (
122: "~",
123: ".inc",
124: )
125:
126: url.redirect = (
127: "^/redirect/$" => "http://localhost:2048/",
128: )
129:
130: url.rewrite = (
131: "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1",
132: "^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1",
133: "^/rewrite/all(/.*)$" => "/indexfile/rewrite.php?$1",
134: )
135:
136: expire.url = (
137: "/expire/access" => "access 2 hours",
138: "/expire/modification" => "access plus 1 seconds 2 minutes",
139: )
140:
141: #### status module
142: status.status-url = "/server-status"
143: status.config-url = "/server-config"
144:
145: $HTTP["host"] == "vvv.example.org" {
146: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
147: }
148:
149: $HTTP["host"] == "zzz.example.org" {
150: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
151: server.name = "zzz.example.org"
152: }
153:
154: $HTTP["host"] == "no-simple.example.org" {
155: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/123.example.org/pages/"
156: server.name = "zzz.example.org"
157: }
158:
159: $HTTP["host"] !~ "(no-simple\.example\.org)" {
160: simple-vhost.document-root = "pages"
161: simple-vhost.server-root = env.SRCDIR + "/tmp/lighttpd/servers/"
162: simple-vhost.default-host = "www.example.org"
163: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>