1
server.document-root = "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/"
2
server.pid-file = "@SRCDIR@/tmp/lighttpd/lighttpd.pid"
4
## bind to port (default: 80)
7
# server.license = "00000001000000013feccb804014587f000000010000000105911c976a3d462c8eaa2d7ca850432c"
9
## bind to localhost (default: all interfaces)
10
server.bind = "localhost"
11
server.errorlog = "@SRCDIR@/tmp/lighttpd/logs/lighttpd.error.log"
12
server.name = "www.example.org"
13
server.tag = "Apache 1.3.29"
17
## Format: <errorfile-prefix><status>.html
18
## -> ..../status-404.html for 'File not found'
19
#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
21
server.dir-listing = "enable"
23
#server.event-handler = "linux-sysepoll"
24
#server.event-handler = "linux-rtsig"
26
#server.modules.path = ""
44
server.indexfiles = ( "index.html",
45
"index.htm", "default.htm", "index.php" )
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 = "@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 = "@SRCDIR@/tmp/lighttpd/cache/compress/"
81
compress.filetype = ("text/plain", "text/html")
83
setenv.add-environment = ( "TRAC_ENV" => "foo")
84
setenv.add-request-header = ( "FOO" => "foo")
85
setenv.add-response-header = ( "BAR" => "foo")
88
fastcgi.server = ( ".php" => (
90
"host" => "127.0.0.1",
92
# "mode" => "authorizer",
93
# "docroot" => "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/",
99
cgi.assign = ( ".pl" => "/usr/bin/perl",
100
".cgi" => "/usr/bin/perl",
101
".py" => "/usr/bin/python" )
105
ssl.engine = "disable"
106
ssl.pemfile = "server.pem"
108
auth.backend = "plain"
109
auth.backend.plain.userfile = "@SRCDIR@/tmp/lighttpd/lighttpd.user"
110
auth.backend.plain.groupfile = "lighttpd.group"
112
auth.backend.ldap.hostname = "localhost"
113
auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
114
auth.backend.ldap.filter = "(uid=$)"
116
auth.require = ( "/server-status" =>
118
"method" => "digest",
119
"realm" => "download archiv",
120
# "require" => ("group=www", "user=jan", "host=192.168.2.10")
121
"require" => "group=www|user=jan|host=192.168.2.10"
126
"realm" => "download archiv",
127
# "require" => ("group=www", "user=jan", "host=192.168.2.10")
128
"require" => "user=jan"
133
"realm" => "download archiv",
134
# "require" => ("group=www", "user=jan", "user=weigon", "host=192.168.2.10")
135
"require" => "group=www|user=jan|host=192.168.2.10"
139
url.access-deny = ( "~", ".inc")
141
url.redirect = ( "^/redirect/$" => "http://localhost:2048/" )
143
expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
145
#cache.cache-dir = "/home/weigon/wwwroot/cache/"
148
status.status-url = "/server-status"
149
status.config-url = "/server-config"
151
simple-vhost.document-root = "pages"
152
simple-vhost.server-root = "@SRCDIR@/tmp/lighttpd/servers/"
153
simple-vhost.default-host = "www.example.org"
155
$HTTP["host"] == "vvv.example.org" {
156
server.document-root = "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/"
159
$HTTP["host"] == "zzz.example.org" {
160
server.document-root = "@SRCDIR@/tmp/lighttpd/servers/www.example.org/pages/"
161
server.name = "zzz.example.org"