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"
11 server.tag = "Apache 1.3.29"
14 server.dir-listing = "enable"
37 server.error-handler-404 = "/indexfile/return-404.php"
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 fastcgi.server = ( ".php" => (
80 "host" => "127.0.0.1",
85 auth.backend = "plain"
86 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
87 auth.backend.plain.groupfile = "lighttpd.group"
89 auth.backend.ldap.hostname = "localhost"
90 auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
91 auth.backend.ldap.filter = "(uid=$)"
96 "realm" => "download archiv",
97 "require" => "group=www|user=jan|host=192.168.2.10",
101 "realm" => "download archiv",
102 "require" => "user=jan",
104 "/server-config" => (
106 "realm" => "download archiv",
107 "require" => "group=www|user=jan|host=192.168.2.10",
117 "^/redirect/$" => "http://localhost:2048/",
121 "/buggy/" => "access 2 hours",
122 "/asdhas/" => "access plus 1 seconds 2 minutes",
126 status.status-url = "/server-status"
127 status.config-url = "/server-config"
129 simple-vhost.document-root = "pages"
130 simple-vhost.server-root = env.SRCDIR + "/tmp/lighttpd/servers/"
131 simple-vhost.default-host = "www.example.org"
133 $HTTP["host"] == "vvv.example.org" {
134 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
137 $HTTP["host"] == "zzz.example.org" {
138 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
139 server.name = "zzz.example.org"