|
version 1.1, 2013/10/14 10:32:47
|
version 1.1.1.2, 2016/11/02 10:35:00
|
|
Line 10 server.breakagelog = env.SRCDIR + "/tmp/lightt
|
Line 10 server.breakagelog = env.SRCDIR + "/tmp/lightt
|
| server.name = "www.example.org" |
server.name = "www.example.org" |
| server.tag = "Proxy" |
server.tag = "Proxy" |
| |
|
| server.dir-listing = "enable" | server.dir-listing = "enable" |
| |
|
| #server.event-handler = "linux-sysepoll" | server.modules = ( |
| #server.event-handler = "linux-rtsig" | "mod_rewrite", |
| | "mod_setenv", |
| | "mod_access", |
| | "mod_auth", |
| | "mod_status", |
| | "mod_expire", |
| | "mod_simple_vhost", |
| | "mod_redirect", |
| | "mod_fastcgi", |
| | "mod_proxy", |
| | "mod_cgi", |
| | "mod_compress", |
| | "mod_userdir", |
| | "mod_accesslog", |
| | ) |
| |
|
| #server.modules.path = "" | server.indexfiles = ( |
| server.modules = ( | "index.php", |
| "mod_rewrite", | "index.html", |
| "mod_setenv", | "index.htm", |
| "mod_access", | "default.htm", |
| "mod_auth", | ) |
| # "mod_httptls", | |
| "mod_status", | |
| "mod_expire", | |
| "mod_simple_vhost", | |
| "mod_redirect", | |
| # "mod_evhost", | |
| # "mod_localizer", | |
| "mod_fastcgi", | |
| "mod_proxy", | |
| "mod_cgi", | |
| "mod_compress", | |
| "mod_userdir", | |
| "mod_accesslog" ) | |
| |
|
| server.indexfiles = ( "index.php", "index.html", |
|
| "index.htm", "default.htm" ) |
|
| |
|
| |
|
| ######################## MODULE CONFIG ############################ |
######################## MODULE CONFIG ############################ |
| |
|
| |
accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" |
| |
|
| accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" | mimetype.assign = ( |
| | ".png" => "image/png", |
| | ".jpg" => "image/jpeg", |
| | ".jpeg" => "image/jpeg", |
| | ".gif" => "image/gif", |
| | ".html" => "text/html", |
| | ".htm" => "text/html", |
| | ".pdf" => "application/pdf", |
| | ".swf" => "application/x-shockwave-flash", |
| | ".spl" => "application/futuresplash", |
| | ".txt" => "text/plain", |
| | ".tar.gz" => "application/x-tgz", |
| | ".tgz" => "application/x-tgz", |
| | ".gz" => "application/x-gzip", |
| | ".c" => "text/plain", |
| | ".conf" => "text/plain", |
| | ) |
| |
|
| mimetype.assign = ( ".png" => "image/png", | compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/" |
| ".jpg" => "image/jpeg", | compress.filetype = ( |
| ".jpeg" => "image/jpeg", | "text/plain", |
| ".gif" => "image/gif", | "text/html", |
| ".html" => "text/html", | ) |
| ".htm" => "text/html", | |
| ".pdf" => "application/pdf", | |
| ".swf" => "application/x-shockwave-flash", | |
| ".spl" => "application/futuresplash", | |
| ".txt" => "text/plain", | |
| ".tar.gz" => "application/x-tgz", | |
| ".tgz" => "application/x-tgz", | |
| ".gz" => "application/x-gzip", | |
| ".c" => "text/plain", | |
| ".conf" => "text/plain" ) | |
| |
|
| compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/" | setenv.add-environment = ( |
| compress.filetype = ("text/plain", "text/html") | "TRAC_ENV" => "foo", |
| | ) |
| | setenv.add-request-header = ( |
| | "FOO" => "foo", |
| | ) |
| | setenv.add-response-header = ( |
| | "BAR" => "foo", |
| | ) |
| |
|
| setenv.add-environment = ( "TRAC_ENV" => "foo") |
|
| setenv.add-request-header = ( "FOO" => "foo") |
|
| setenv.add-response-header = ( "BAR" => "foo") |
|
| |
|
| proxy.debug = 1 |
proxy.debug = 1 |
| proxy.server = ( "" => ( | proxy.server = ( "" => ( |
| "grisu" => ( | "grisu" => ( |
| "host" => "127.0.0.1", | "host" => "127.0.0.1", |
| "port" => 2048, | "port" => 2048, |
| ) | ), |
| ) | )) |
| ) | |
| |
|
| |
cgi.assign = ( |
| |
".pl" => env.PERL, |
| |
".cgi" => env.PERL, |
| |
) |
| |
|
| cgi.assign = ( ".pl" => "/usr/bin/perl", | userdir.include-user = ( |
| ".cgi" => "/usr/bin/perl", | "jan", |
| ".py" => "/usr/bin/python" ) | ) |
| |
| userdir.include-user = ( "jan" ) | |
| userdir.path = "/" |
userdir.path = "/" |
| |
|
| ssl.engine = "disable" | auth.backend = "plain" |
| # ssl.pemfile = "server.pem" | |
| |
| auth.backend = "plain" | |
| auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user" |
auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user" |
| auth.backend.plain.groupfile = "lighttpd.group" |
auth.backend.plain.groupfile = "lighttpd.group" |
| |
|
|
Line 95 auth.backend.ldap.hostname = "localhost"
|
Line 100 auth.backend.ldap.hostname = "localhost"
|
| auth.backend.ldap.base-dn = "dc=my-domain,dc=com" |
auth.backend.ldap.base-dn = "dc=my-domain,dc=com" |
| auth.backend.ldap.filter = "(uid=$)" |
auth.backend.ldap.filter = "(uid=$)" |
| |
|
| auth.require = ( "/server-status" => | auth.require = ( |
| ( | "/server-status" => ( |
| "method" => "digest", | "method" => "digest", |
| "realm" => "download archiv", | "realm" => "download archiv", |
| # "require" => ("group=www", "user=jan", "host=192.168.2.10") | "require" => "group=www|user=jan|host=192.168.2.10", |
| "require" => "group=www|user=jan|host=192.168.2.10" | ), |
| ), | "/auth.php" => ( |
| "/auth.php" => | "method" => "basic", |
| ( | "realm" => "download archiv", |
| "method" => "basic", | "require" => "user=jan", |
| "realm" => "download archiv", | ), |
| # "require" => ("group=www", "user=jan", "host=192.168.2.10") | "/server-config" => ( |
| "require" => "user=jan" | "method" => "basic", |
| ), | "realm" => "download archiv", |
| "/server-config" => | "require" => "group=www|user=jan|host=192.168.2.10", |
| ( | ), |
| "method" => "basic", | ) |
| "realm" => "download archiv", | |
| # "require" => ("group=www", "user=jan", "user=weigon", "host=192.168.2.10") | |
| "require" => "group=www|user=jan|host=192.168.2.10" | |
| ) | |
| ) | |
| |
|
| url.access-deny = ( "~", ".inc") | url.access-deny = ( |
| | "~", |
| | ".inc", |
| | ) |
| |
|
| url.redirect = ( "^/redirect/$" => "http://localhost:2048/" ) | url.redirect = ( |
| | "^/redirect/$" => "http://localhost:2048/", |
| | ) |
| |
|
| url.rewrite = ( "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1", | url.rewrite = ( |
| "^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1", | "^/rewrite/foo($|\?.+)" => "/indexfile/rewrite.php$1", |
| "^/rewrite/all(/.*)$" => "/indexfile/rewrite.php?$1" ) | "^/rewrite/bar(?:$|\?(.+))" => "/indexfile/rewrite.php?bar&$1", |
| | "^/rewrite/all(/.*)$" => "/indexfile/rewrite.php?$1", |
| | ) |
| |
|
| expire.url = ( "/expire/access" => "access 2 hours", | expire.url = ( |
| "/expire/modification" => "access plus 1 seconds 2 minutes") | "/expire/access" => "access 2 hours", |
| | "/expire/modification" => "access plus 1 seconds 2 minutes", |
| | ) |
| |
|
| #cache.cache-dir = "/home/weigon/wwwroot/cache/" |
|
| |
|
| #### status module |
#### status module |
| status.status-url = "/server-status" | status.status-url = "/server-status" |
| status.config-url = "/server-config" | status.config-url = "/server-config" |
| |
|
| $HTTP["host"] == "vvv.example.org" { |
$HTTP["host"] == "vvv.example.org" { |
| server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" | server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" |
| } |
} |
| |
|
| $HTTP["host"] == "zzz.example.org" { |
$HTTP["host"] == "zzz.example.org" { |
| server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" | server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" |
| server.name = "zzz.example.org" | server.name = "zzz.example.org" |
| } |
} |
| |
|
| $HTTP["host"] == "no-simple.example.org" { |
$HTTP["host"] == "no-simple.example.org" { |
| server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/123.example.org/pages/" | server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/123.example.org/pages/" |
| server.name = "zzz.example.org" | server.name = "zzz.example.org" |
| } |
} |
| |
|
| $HTTP["host"] !~ "(no-simple\.example\.org)" { |
$HTTP["host"] !~ "(no-simple\.example\.org)" { |
| simple-vhost.document-root = "pages" | simple-vhost.document-root = "pages" |
| simple-vhost.server-root = env.SRCDIR + "/tmp/lighttpd/servers/" | simple-vhost.server-root = env.SRCDIR + "/tmp/lighttpd/servers/" |
| simple-vhost.default-host = "www.example.org" | simple-vhost.default-host = "www.example.org" |
| } |
} |
| |
|