1server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 2 3## bind to port (default: 80) 4server.port = 2050 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 = "Proxy" 12 13server.dir-listing = "enable" 14 15#server.event-handler = "linux-sysepoll" 16#server.event-handler = "linux-rtsig" 17 18#server.modules.path = "" 19server.modules = ( 20 "mod_rewrite", 21 "mod_setenv", 22 "mod_access", 23 "mod_auth", 24# "mod_httptls", 25 "mod_status", 26 "mod_expire", 27 "mod_simple_vhost", 28 "mod_redirect", 29# "mod_evhost", 30# "mod_localizer", 31 "mod_fastcgi", 32 "mod_proxy", 33 "mod_cgi", 34 "mod_compress", 35 "mod_userdir", 36 "mod_accesslog" ) 37 38server.indexfiles = ( "index.php", "index.html", 39 "index.htm", "default.htm" ) 40 41 42######################## MODULE CONFIG ############################ 43 44 45accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" 46 47mimetype.assign = ( ".png" => "image/png", 48 ".jpg" => "image/jpeg", 49 ".jpeg" => "image/jpeg", 50 ".gif" => "image/gif", 51 ".html" => "text/html", 52 ".htm" => "text/html", 53 ".pdf" => "application/pdf", 54 ".swf" => "application/x-shockwave-flash", 55 ".spl" => "application/futuresplash", 56 ".txt" => "text/plain", 57 ".tar.gz" => "application/x-tgz", 58 ".tgz" => "application/x-tgz", 59 ".gz" => "application/x-gzip", 60 ".c" => "text/plain", 61 ".conf" => "text/plain" ) 62 63compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/" 64compress.filetype = ("text/plain", "text/html") 65 66setenv.add-environment = ( "TRAC_ENV" => "foo") 67setenv.add-request-header = ( "FOO" => "foo") 68setenv.add-response-header = ( "BAR" => "foo") 69 70proxy.debug = 1 71proxy.server = ( "" => ( 72 "grisu" => ( 73 "host" => "127.0.0.1", 74 "port" => 2048, 75 ) 76 ) 77 ) 78 79 80cgi.assign = ( ".pl" => "/usr/bin/perl", 81 ".cgi" => "/usr/bin/perl", 82 ".py" => "/usr/bin/python" ) 83 84userdir.include-user = ( "jan" ) 85userdir.path = "/" 86 87ssl.engine = "disable" 88# ssl.pemfile = "server.pem" 89 90auth.backend = "plain" 91auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user" 92auth.backend.plain.groupfile = "lighttpd.group" 93 94auth.backend.ldap.hostname = "localhost" 95auth.backend.ldap.base-dn = "dc=my-domain,dc=com" 96auth.backend.ldap.filter = "(uid=$)" 97 98auth.require = ( "/server-status" => 99 ( 100 "method" => "digest", 101 "realm" => "download archiv", 102# "require" => ("group=www", "user=jan", "host=192.168.2.10") 103 "require" => "group=www|user=jan|host=192.168.2.10" 104 ), 105 "/auth.php" => 106 ( 107 "method" => "basic", 108 "realm" => "download archiv", 109# "require" => ("group=www", "user=jan", "host=192.168.2.10") 110 "require" => "user=jan" 111 ), 112 "/server-config" => 113 ( 114 "method" => "basic", 115 "realm" => "download archiv", 116# "require" => ("group=www", "user=jan", "user=weigon", "host=192.168.2.10") 117 "require" => "group=www|user=jan|host=192.168.2.10" 118 ) 119 ) 120 121url.access-deny = ( "~", ".inc") 122 123url.redirect = ( "^/redirect/$" => "http://localhost:2048/" ) 124 125url.rewrite = ( "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1", 126 "^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1", 127 "^/rewrite/all(/.*)$" => "/indexfile/rewrite.php?$1" ) 128 129expire.url = ( "/expire/access" => "access 2 hours", 130 "/expire/modification" => "access plus 1 seconds 2 minutes") 131 132#cache.cache-dir = "/home/weigon/wwwroot/cache/" 133 134#### status module 135status.status-url = "/server-status" 136status.config-url = "/server-config" 137 138$HTTP["host"] == "vvv.example.org" { 139 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 140} 141 142$HTTP["host"] == "zzz.example.org" { 143 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 144 server.name = "zzz.example.org" 145} 146 147$HTTP["host"] == "no-simple.example.org" { 148 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/123.example.org/pages/" 149 server.name = "zzz.example.org" 150} 151 152$HTTP["host"] !~ "(no-simple\.example\.org)" { 153 simple-vhost.document-root = "pages" 154 simple-vhost.server-root = env.SRCDIR + "/tmp/lighttpd/servers/" 155 simple-vhost.default-host = "www.example.org" 156} 157 158