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"
10server.name                = "www.example.org"
11server.tag                 = "Apache 1.3.29"
12
13##
14## Format: <errorfile-prefix><status>.html
15## -> ..../status-404.html for 'File not found'
16#server.errorfile-prefix    = "/home/weigon/projects/lighttpd/doc/status-"
17
18server.dir-listing          = "enable"
19
20#server.event-handler        = "linux-sysepoll"
21#server.event-handler        = "linux-rtsig"
22
23#server.modules.path         = ""
24server.modules              = (
25				"mod_rewrite",
26			        "mod_access",
27				"mod_auth",
28#				"mod_httptls",
29				"mod_status",
30				"mod_expire",
31#				"mod_simple_vhost",
32				"mod_redirect",
33#				"mod_evhost",
34#				"mod_localizer",
35				"mod_fastcgi",
36				"mod_cgi",
37				"mod_compress",
38				"mod_accesslog" )
39
40server.indexfiles           = ( "index.php", "index.html",
41                                "index.htm", "default.htm" )
42
43
44######################## MODULE CONFIG ############################
45
46
47accesslog.filename          = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
48
49mimetype.assign             = ( ".png"  => "image/png",
50                                ".jpg"  => "image/jpeg",
51                                ".jpeg" => "image/jpeg",
52                                ".gif"  => "image/gif",
53                                ".html" => "text/html",
54                                ".htm"  => "text/html",
55                                ".pdf"  => "application/pdf",
56                                ".swf"  => "application/x-shockwave-flash",
57                                ".spl"  => "application/futuresplash",
58                                ".txt"  => "text/plain",
59                                ".tar.gz" =>   "application/x-tgz",
60                                ".tgz"  => "application/x-tgz",
61                                ".gz"   => "application/x-gzip",
62				".c"    => "text/plain",
63				".conf" => "text/plain" )
64
65compress.cache-dir          = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
66compress.filetype           = ("text/plain", "text/html")
67
68fastcgi.debug               = 0
69fastcgi.server              = ( ".php" => (
70                                  "grisu" => (
71				    "host" => "127.0.0.1",
72				    "port" => 1026
73				  )
74				)
75			      )
76
77
78cgi.assign                  = ( ".pl"  => "/usr/bin/perl",
79                                ".cgi" => "/usr/bin/perl",
80				".py"  => "/usr/bin/python" )
81
82
83
84ssl.engine                  = "disable"
85# ssl.pemfile                 = "server.pem"
86
87auth.backend                = "plain"
88auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
89auth.backend.plain.groupfile = "lighttpd.group"
90
91auth.backend.ldap.hostname  = "localhost"
92auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
93auth.backend.ldap.filter    = "(uid=$)"
94
95auth.require                = ( "/server-status" =>
96                                (
97				  "method"  => "digest",
98				  "realm"   => "download archiv",
99#				  "require" => ("group=www", "user=jan", "host=192.168.2.10")
100				  "require" => "group=www|user=jan|host=192.168.2.10"
101				),
102				"/auth.php" =>
103                                (
104				  "method"  => "basic",
105				  "realm"   => "download archiv",
106#				  "require" => ("group=www", "user=jan", "host=192.168.2.10")
107				  "require" => "user=jan"
108				),
109				"/server-config" =>
110                                (
111				  "method"  => "basic",
112				  "realm"   => "download archiv",
113#				  "require" => ("group=www", "user=jan", "user=weigon", "host=192.168.2.10")
114				  "require" => "group=www|user=jan|host=192.168.2.10"
115				)
116                              )
117
118url.access-deny             = ( "~", ".inc")
119
120url.redirect                = ( "^/redirect/$" => "http://localhost:2048/" )
121
122expire.url                  = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
123
124#cache.cache-dir             = "/home/weigon/wwwroot/cache/"
125
126#### status module
127status.status-url           = "/server-status"
128status.config-url           = "/server-config"
129
130$HTTP["host"] == "vvv.example.org" {
131  server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
132}
133
134$HTTP["host"] == "zzz.example.org" {
135  server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
136  server.name = "zzz.example.org"
137}
138
139