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"
38 server.error-handler-404 = "/indexfile/return-404.php"
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 fastcgi.server = ( ".php" => (
81 "host" => "127.0.0.1",
86 auth.backend = "plain"
87 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
88 auth.backend.plain.groupfile = "lighttpd.group"
90 #auth.backend.ldap.hostname = "localhost"
91 #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
92 #auth.backend.ldap.filter = "(uid=$)"
97 "realm" => "download archiv",
98 "require" => "group=www|user=jan|host=192.168.2.10",
102 "realm" => "download archiv",
103 "require" => "user=jan",
105 "/server-config" => (
107 "realm" => "download archiv",
108 "require" => "group=www|user=jan|host=192.168.2.10",
118 "^/redirect/$" => "http://localhost:2048/",
122 "/buggy/" => "access 2 hours",
123 "/asdhas/" => "access plus 1 seconds 2 minutes",
127 status.status-url = "/server-status"
128 status.config-url = "/server-config"
130 simple-vhost.document-root = "pages"
131 simple-vhost.server-root = env.SRCDIR + "/tmp/lighttpd/servers/"
132 simple-vhost.default-host = "www.example.org"
134 $HTTP["host"] == "vvv.example.org" {
135 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
138 $HTTP["host"] == "zzz.example.org" {
139 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
140 server.name = "zzz.example.org"