1server.document-root         = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
2
3debug.log-request-header   = "enable"
4debug.log-response-header  = "enable"
5debug.log-request-handling = "enable"
6
7## bind to port (default: 80)
8server.port                 = 2048
9
10## bind to localhost (default: all interfaces)
11server.bind                = "localhost"
12server.errorlog            = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
13server.breakagelog         = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
14server.name                = "www.example.org"
15server.tag                 = "Apache 1.3.29"
16
17##
18## Format: <errorfile-prefix><status>.html
19## -> ..../status-404.html for 'File not found'
20#server.errorfile-prefix    = "/home/weigon/projects/lighttpd/doc/status-"
21
22server.dir-listing          = "enable"
23
24#server.event-handler        = "linux-sysepoll"
25#server.event-handler        = "linux-rtsig"
26
27#server.modules.path         = ""
28server.modules              = (
29				"mod_rewrite",
30			        "mod_access",
31				"mod_auth",
32#				"mod_httptls",
33				"mod_status",
34				"mod_expire",
35#				"mod_simple_vhost",
36				"mod_redirect",
37#				"mod_evhost",
38#				"mod_localizer",
39				"mod_fastcgi",
40				"mod_cgi",
41				"mod_compress",
42				"mod_accesslog" )
43
44server.indexfiles           = ( "index.php", "index.html",
45                                "index.htm", "default.htm" )
46
47#,-- only root can use these options
48#|
49#|# chroot() to directory (default: no chroot() )
50#| server.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
55#|
56#`--
57
58
59######################## MODULE CONFIG ############################
60
61
62accesslog.filename          = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
63
64mimetype.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",
77				".c"    => "text/plain",
78				".conf" => "text/plain" )
79
80compress.cache-dir          = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
81compress.filetype           = ("text/plain", "text/html")
82
83fastcgi.debug               = 0
84fastcgi.server              = ( ".php" => (
85                                  "grisu" => (
86				    "host" => "127.0.0.1",
87				    "port" => 1048,
88				    "bin-path" => env.PHP,
89				    "bin-copy-environment" => ( "PATH", "SHELL", "USER" ),
90				  )
91				)
92			      )
93
94
95cgi.assign                  = ( ".pl"  => "/usr/bin/perl",
96                                ".cgi" => "/usr/bin/perl",
97				".py"  => "/usr/bin/python" )
98
99
100
101ssl.engine                  = "disable"
102# ssl.pemfile                 = "server.pem"
103
104auth.backend                = "plain"
105auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
106auth.backend.plain.groupfile = "lighttpd.group"
107
108auth.backend.ldap.hostname  = "localhost"
109auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
110auth.backend.ldap.filter    = "(uid=$)"
111
112auth.require                = ( "/server-status" =>
113                                (
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"
118				),
119				"/auth.php" =>
120                                (
121				  "method"  => "basic",
122				  "realm"   => "download archiv",
123#				  "require" => ("group=www", "user=jan", "host=192.168.2.10")
124				  "require" => "user=jan"
125				),
126				"/server-config" =>
127                                (
128				  "method"  => "basic",
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"
132				)
133                              )
134
135url.access-deny             = ( "~", ".inc")
136
137url.redirect                = ( "^/redirect/$" => "http://localhost:2048/" )
138
139expire.url                  = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
140
141#cache.cache-dir             = "/home/weigon/wwwroot/cache/"
142
143#### status module
144status.status-url           = "/server-status"
145status.config-url           = "/server-config"
146
147$HTTP["host"] == "vvv.example.org" {
148  server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
149}
150
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"
154}
155
156