1server.document-root         = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
2
3## bind to port (default: 80)
4server.port                 = 2048
5
6## bind to localhost (default: all interfaces)
7server.bind                = "localhost"
8server.errorlog            = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
9server.breakagelog         = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
10
11server.force-lowercase-filenames = "enable"
12
13server.dir-listing          = "enable"
14
15server.modules              = (
16				"mod_rewrite",
17				"mod_setenv",
18				"mod_secdownload",
19			        "mod_access",
20				"mod_auth",
21				"mod_status",
22				"mod_expire",
23				"mod_redirect",
24				"mod_fastcgi",
25				"mod_cgi" )
26
27server.indexfiles           = ( "index.php", "index.html",
28                                "index.htm", "default.htm" )
29
30
31######################## MODULE CONFIG ############################
32
33mimetype.assign             = ( ".png"  => "image/png",
34                                ".jpg"  => "image/jpeg",
35                                ".jpeg" => "image/jpeg",
36                                ".gif"  => "image/gif",
37                                ".html" => "text/html",
38                                ".htm"  => "text/html",
39                                ".pdf"  => "application/pdf",
40                                ".swf"  => "application/x-shockwave-flash",
41                                ".spl"  => "application/futuresplash",
42                                ".txt"  => "text/plain",
43                                ".tar.gz" =>   "application/x-tgz",
44                                ".tgz"  => "application/x-tgz",
45                                ".gz"   => "application/x-gzip",
46				".c"    => "text/plain",
47				".conf" => "text/plain" )
48
49fastcgi.debug               = 0
50fastcgi.server              = ( ".php" =>        ( ( "host" => "127.0.0.1", "port" => 1026, "broken-scriptfilename" => "enable" ) ),
51			        "/prefix.fcgi" => ( ( "host" => "127.0.0.1", "port" => 1026, "check-local" => "disable", "broken-scriptfilename" => "enable" ) )
52			      )
53
54
55cgi.assign                  = ( ".pl"  => "/usr/bin/perl",
56                                ".cgi" => "/usr/bin/perl",
57				".py"  => "/usr/bin/python" )
58
59auth.backend                = "plain"
60auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
61
62auth.backend.htpasswd.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.htpasswd"
63
64$HTTP["host"] == "lowercase-auth" {
65  auth.require             = ( "/image.jpg" =>
66                                (
67				  "method"  => "digest",
68				  "realm"   => "download archiv",
69				  "require" => "valid-user"
70				)
71                              )
72}
73
74$HTTP["host"] == "lowercase-deny" {
75  url.access-deny             = ( ".jpg")
76}
77
78$HTTP["host"] == "lowercase-exclude" {
79  static-file.exclude-extensions = ( ".jpg" )
80}
81