1 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
3 debug.log-request-header = "enable"
4 debug.log-response-header = "enable"
5 debug.log-request-handling = "enable"
7 ## bind to port (default: 80)
10 ## bind to localhost (default: all interfaces)
11 server.bind = "localhost"
12 server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
13 server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
14 server.name = "www.example.org"
15 server.tag = "Apache 1.3.29"
18 ## Format: <errorfile-prefix><status>.html
19 ## -> ..../status-404.html for 'File not found'
20 #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
22 server.dir-listing = "enable"
24 #server.event-handler = "linux-sysepoll"
25 #server.event-handler = "linux-rtsig"
27 #server.modules.path = ""
44 server.indexfiles = ( "index.php", "index.html",
45 "index.htm", "default.htm" )
47 #,-- only root can use these options
49 #|# chroot() to directory (default: no chroot() )
51 #|# change uid to <uid> (default: don't care)
52 #| server.userid wwwrun
53 #|# change uid to <uid> (default: don't care)
54 #| server.groupid wwwrun
59 ######################## MODULE CONFIG ############################
62 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
64 mimetype.assign = ( ".png" => "image/png",
65 ".jpg" => "image/jpeg",
66 ".jpeg" => "image/jpeg",
67 ".gif" => "image/gif",
68 ".html" => "text/html",
69 ".htm" => "text/html",
70 ".pdf" => "application/pdf",
71 ".swf" => "application/x-shockwave-flash",
72 ".spl" => "application/futuresplash",
73 ".txt" => "text/plain",
74 ".tar.gz" => "application/x-tgz",
75 ".tgz" => "application/x-tgz",
76 ".gz" => "application/x-gzip",
78 ".conf" => "text/plain" )
80 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
81 compress.filetype = ("text/plain", "text/html")
84 fastcgi.server = ( ".php" => (
86 "host" => "127.0.0.1",
88 "bin-path" => env.PHP,
89 "bin-copy-environment" => ( "PATH", "SHELL", "USER" ),
95 cgi.assign = ( ".pl" => "/usr/bin/perl",
96 ".cgi" => "/usr/bin/perl",
97 ".py" => "/usr/bin/python" )
101 ssl.engine = "disable"
102 # ssl.pemfile = "server.pem"
104 auth.backend = "plain"
105 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
106 auth.backend.plain.groupfile = "lighttpd.group"
108 auth.backend.ldap.hostname = "localhost"
109 auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
110 auth.backend.ldap.filter = "(uid=$)"
112 auth.require = ( "/server-status" =>
114 "method" => "digest",
115 "realm" => "download archiv",
116 # "require" => ("group=www", "user=jan", "host=192.168.2.10")
117 "require" => "group=www|user=jan|host=192.168.2.10"
122 "realm" => "download archiv",
123 # "require" => ("group=www", "user=jan", "host=192.168.2.10")
124 "require" => "user=jan"
129 "realm" => "download archiv",
130 # "require" => ("group=www", "user=jan", "user=weigon", "host=192.168.2.10")
131 "require" => "group=www|user=jan|host=192.168.2.10"
135 url.access-deny = ( "~", ".inc")
137 url.redirect = ( "^/redirect/$" => "http://localhost:2048/" )
139 expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
141 #cache.cache-dir = "/home/weigon/wwwroot/cache/"
144 status.status-url = "/server-status"
145 status.config-url = "/server-config"
147 $HTTP["host"] == "vvv.example.org" {
148 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
151 $HTTP["host"] == "zzz.example.org" {
152 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
153 server.name = "zzz.example.org"