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 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 83setenv.add-environment = ( "TRAC_ENV" => "foo") 84setenv.add-request-header = ( "FOO" => "foo") 85setenv.add-response-header = ( "BAR" => "foo") 86 87fastcgi.debug = 0 88fastcgi.server = ( ".php" => ( 89 "grisu" => ( 90 "host" => "127.0.0.1", 91 "port" => 1026, 92# "mode" => "authorizer", 93# "docroot" => env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/", 94 ) 95 ) 96 ) 97 98 99cgi.assign = ( ".pl" => "/usr/bin/perl", 100 ".cgi" => "/usr/bin/perl", 101 ".py" => "/usr/bin/python" ) 102 103 104 105ssl.engine = "disable" 106# ssl.pemfile = "server.pem" 107 108auth.backend = "plain" 109auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user" 110auth.backend.plain.groupfile = "lighttpd.group" 111 112auth.backend.ldap.hostname = "localhost" 113auth.backend.ldap.base-dn = "dc=my-domain,dc=com" 114auth.backend.ldap.filter = "(uid=$)" 115 116auth.require = ( "/server-status" => 117 ( 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" 122 ), 123 "/auth.php" => 124 ( 125 "method" => "basic", 126 "realm" => "download archiv", 127# "require" => ("group=www", "user=jan", "host=192.168.2.10") 128 "require" => "user=jan" 129 ), 130 "/server-config" => 131 ( 132 "method" => "basic", 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" 136 ) 137 ) 138 139url.access-deny = ( "~", ".inc") 140 141url.redirect = ( "^/redirect/$" => "http://localhost:2048/" ) 142 143expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes") 144 145#cache.cache-dir = "/home/weigon/wwwroot/cache/" 146 147#### status module 148status.status-url = "/server-status" 149status.config-url = "/server-config" 150 151simple-vhost.document-root = "pages" 152simple-vhost.server-root = env.SRCDIR + "/tmp/lighttpd/servers/" 153simple-vhost.default-host = "www.example.org" 154 155$HTTP["host"] == "vvv.example.org" { 156 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 157} 158 159$HTTP["host"] == "zzz.example.org" { 160 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 161 server.name = "zzz.example.org" 162} 163 164