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"
40 ######################## MODULE CONFIG ############################
42 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
45 ".png" => "image/png",
46 ".jpg" => "image/jpeg",
47 ".jpeg" => "image/jpeg",
48 ".gif" => "image/gif",
49 ".html" => "text/html",
50 ".htm" => "text/html",
51 ".pdf" => "application/pdf",
52 ".swf" => "application/x-shockwave-flash",
53 ".spl" => "application/futuresplash",
54 ".txt" => "text/plain",
55 ".tar.gz" => "application/x-tgz",
56 ".tgz" => "application/x-tgz",
57 ".gz" => "application/x-gzip",
59 ".conf" => "text/plain",
62 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
68 setenv.add-environment = (
71 setenv.add-request-header = (
74 setenv.add-response-header = (
79 proxy.server = ( "" => (
81 "host" => "127.0.0.1",
91 userdir.include-user = (
96 auth.backend = "plain"
97 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
98 auth.backend.plain.groupfile = "lighttpd.group"
100 #auth.backend.ldap.hostname = "localhost"
101 #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
102 #auth.backend.ldap.filter = "(uid=$)"
105 "/server-status" => (
106 "method" => "digest",
107 "realm" => "download archiv",
108 "require" => "group=www|user=jan|host=192.168.2.10",
112 "realm" => "download archiv",
113 "require" => "user=jan",
115 "/server-config" => (
117 "realm" => "download archiv",
118 "require" => "group=www|user=jan|host=192.168.2.10",
128 "^/redirect/$" => "http://localhost:2048/",
132 "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1",
133 "^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1",
134 "^/rewrite/all(/.*)$" => "/indexfile/rewrite.php?$1",
138 "/expire/access" => "access 2 hours",
139 "/expire/modification" => "access plus 1 seconds 2 minutes",
143 status.status-url = "/server-status"
144 status.config-url = "/server-config"
146 $HTTP["host"] == "vvv.example.org" {
147 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
150 $HTTP["host"] == "zzz.example.org" {
151 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
152 server.name = "zzz.example.org"
155 $HTTP["host"] == "no-simple.example.org" {
156 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/123.example.org/pages/"
157 server.name = "zzz.example.org"
160 $HTTP["host"] !~ "(no-simple\.example\.org)" {
161 simple-vhost.document-root = "pages"
162 simple-vhost.server-root = env.SRCDIR + "/tmp/lighttpd/servers/"
163 simple-vhost.default-host = "www.example.org"