1 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
3 ## bind to port (default: 80)
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"
13 server.dir-listing = "enable"
39 ######################## MODULE CONFIG ############################
41 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
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",
58 ".conf" => "text/plain",
61 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
67 setenv.add-environment = (
70 setenv.add-request-header = (
73 setenv.add-response-header = (
78 proxy.server = ( "" => (
80 "host" => "127.0.0.1",
90 userdir.include-user = (
95 auth.backend = "plain"
96 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
97 auth.backend.plain.groupfile = "lighttpd.group"
99 auth.backend.ldap.hostname = "localhost"
100 auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
101 auth.backend.ldap.filter = "(uid=$)"
104 "/server-status" => (
105 "method" => "digest",
106 "realm" => "download archiv",
107 "require" => "group=www|user=jan|host=192.168.2.10",
111 "realm" => "download archiv",
112 "require" => "user=jan",
114 "/server-config" => (
116 "realm" => "download archiv",
117 "require" => "group=www|user=jan|host=192.168.2.10",
127 "^/redirect/$" => "http://localhost:2048/",
131 "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1",
132 "^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1",
133 "^/rewrite/all(/.*)$" => "/indexfile/rewrite.php?$1",
137 "/expire/access" => "access 2 hours",
138 "/expire/modification" => "access plus 1 seconds 2 minutes",
142 status.status-url = "/server-status"
143 status.config-url = "/server-config"
145 $HTTP["host"] == "vvv.example.org" {
146 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
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"
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"
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"