1server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 2 3## bind to port (default: 80) 4server.port = 2048 5 6# server.license = "00000001000000013feccb804014587f000000010000000105911c976a3d462c8eaa2d7ca850432c" 7 8## bind to localhost (default: all interfaces) 9server.bind = "localhost" 10server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log" 11server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log" 12server.name = "www.example.org" 13server.tag = "Apache 1.3.29" 14 15 16## 17## Format: <errorfile-prefix><status>.html 18## -> ..../status-404.html for 'File not found' 19#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-" 20 21server.dir-listing = "enable" 22 23#server.event-handler = "linux-sysepoll" 24#server.event-handler = "linux-rtsig" 25 26#server.modules.path = "" 27server.modules = ( 28 "mod_rewrite", 29 "mod_setenv", 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.html", 45 "index.htm", "default.htm", "index.php" ) 46 47server.error-handler-404 = "/indexfile/return-404.php" 48 49#,-- only root can use these options 50#| 51#|# chroot() to directory (default: no chroot() ) 52#| server.chroot / 53#|# change uid to <uid> (default: don't care) 54#| server.userid wwwrun 55#|# change uid to <uid> (default: don't care) 56#| server.groupid wwwrun 57#| 58#`-- 59 60 61######################## MODULE CONFIG ############################ 62 63 64accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" 65 66mimetype.assign = ( ".png" => "image/png", 67 ".jpg" => "image/jpeg", 68 ".jpeg" => "image/jpeg", 69 ".gif" => "image/gif", 70 ".html" => "text/html", 71 ".htm" => "text/html", 72 ".pdf" => "application/pdf", 73 ".swf" => "application/x-shockwave-flash", 74 ".spl" => "application/futuresplash", 75 ".txt" => "text/plain", 76 ".tar.gz" => "application/x-tgz", 77 ".tgz" => "application/x-tgz", 78 ".gz" => "application/x-gzip", 79 ".c" => "text/plain", 80 ".conf" => "text/plain" ) 81 82compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/" 83compress.filetype = ("text/plain", "text/html") 84 85setenv.add-environment = ( "TRAC_ENV" => "foo") 86setenv.add-request-header = ( "FOO" => "foo") 87setenv.add-response-header = ( "BAR" => "foo") 88 89fastcgi.debug = 0 90fastcgi.server = ( ".php" => ( 91 "grisu" => ( 92 "host" => "127.0.0.1", 93 "port" => 1026, 94# "mode" => "authorizer", 95# "docroot" => env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/", 96 ) 97 ) 98 ) 99 100 101cgi.assign = ( ".pl" => "/usr/bin/perl", 102 ".cgi" => "/usr/bin/perl", 103 ".py" => "/usr/bin/python" ) 104 105 106 107ssl.engine = "disable" 108# ssl.pemfile = "server.pem" 109 110auth.backend = "plain" 111auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user" 112auth.backend.plain.groupfile = "lighttpd.group" 113 114auth.backend.ldap.hostname = "localhost" 115auth.backend.ldap.base-dn = "dc=my-domain,dc=com" 116auth.backend.ldap.filter = "(uid=$)" 117 118auth.require = ( "/server-status" => 119 ( 120 "method" => "digest", 121 "realm" => "download archiv", 122# "require" => ("group=www", "user=jan", "host=192.168.2.10") 123 "require" => "group=www|user=jan|host=192.168.2.10" 124 ), 125 "/auth.php" => 126 ( 127 "method" => "basic", 128 "realm" => "download archiv", 129# "require" => ("group=www", "user=jan", "host=192.168.2.10") 130 "require" => "user=jan" 131 ), 132 "/server-config" => 133 ( 134 "method" => "basic", 135 "realm" => "download archiv", 136# "require" => ("group=www", "user=jan", "user=weigon", "host=192.168.2.10") 137 "require" => "group=www|user=jan|host=192.168.2.10" 138 ) 139 ) 140 141url.access-deny = ( "~", ".inc") 142 143url.redirect = ( "^/redirect/$" => "http://localhost:2048/" ) 144 145expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes") 146 147#cache.cache-dir = "/home/weigon/wwwroot/cache/" 148 149#### status module 150status.status-url = "/server-status" 151status.config-url = "/server-config" 152 153simple-vhost.document-root = "pages" 154simple-vhost.server-root = env.SRCDIR + "/tmp/lighttpd/servers/" 155simple-vhost.default-host = "www.example.org" 156 157$HTTP["host"] == "vvv.example.org" { 158 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 159} 160 161$HTTP["host"] == "zzz.example.org" { 162 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 163 server.name = "zzz.example.org" 164} 165 166