From 693950e223e94389ab44e1da84ed81efdb7f9561 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 11 Jul 2006 20:20:45 +0000 Subject: [PATCH] - split from main big config file Changed files: lighttpd-mod_access.conf -> 1.2 lighttpd-mod_accesslog.conf -> 1.2 lighttpd-mod_alias.conf -> 1.2 lighttpd-mod_auth.conf -> 1.2 lighttpd-mod_cgi.conf -> 1.2 lighttpd-mod_cml.conf -> 1.2 lighttpd-mod_compress.conf -> 1.2 lighttpd-mod_dirlisting.conf -> 1.2 lighttpd-mod_evasive.conf -> 1.2 lighttpd-mod_evhost.conf -> 1.2 lighttpd-mod_expire.conf -> 1.2 lighttpd-mod_fastcgi.conf -> 1.2 lighttpd-mod_indexfile.conf -> 1.2 lighttpd-mod_proxy.conf -> 1.2 lighttpd-mod_redirect.conf -> 1.2 lighttpd-mod_rewrite.conf -> 1.2 lighttpd-mod_rrdtool.conf -> 1.2 lighttpd-mod_setenv.conf -> 1.2 lighttpd-mod_simple_vhost.conf -> 1.2 lighttpd-mod_ssi.conf -> 1.2 lighttpd-mod_staticfile.conf -> 1.2 lighttpd-mod_status.conf -> 1.2 lighttpd-mod_trigger_b4_dl.conf -> 1.2 lighttpd-mod_userdir.conf -> 1.2 --- lighttpd-mod_access.conf | 8 +++++++ lighttpd-mod_accesslog.conf | 4 ++++ lighttpd-mod_alias.conf | 5 +++++ lighttpd-mod_auth.conf | 37 +++++++++++++++++++++++++++++++++ lighttpd-mod_cgi.conf | 7 +++++++ lighttpd-mod_cml.conf | 6 ++++++ lighttpd-mod_compress.conf | 4 ++++ lighttpd-mod_dirlisting.conf | 3 +++ lighttpd-mod_evasive.conf | 7 +++++++ lighttpd-mod_evhost.conf | 11 ++++++++++ lighttpd-mod_expire.conf | 7 +++++++ lighttpd-mod_fastcgi.conf | 25 ++++++++++++++++++++++ lighttpd-mod_indexfile.conf | 9 ++++++++ lighttpd-mod_proxy.conf | 12 +++++++++++ lighttpd-mod_redirect.conf | 9 ++++++++ lighttpd-mod_rewrite.conf | 5 +++++ lighttpd-mod_rrdtool.conf | 5 +++++ lighttpd-mod_setenv.conf | 4 ++++ lighttpd-mod_simple_vhost.conf | 15 +++++++++++++ lighttpd-mod_ssi.conf | 4 ++++ lighttpd-mod_staticfile.conf | 7 +++++++ lighttpd-mod_status.conf | 5 +++++ lighttpd-mod_trigger_b4_dl.conf | 9 ++++++++ lighttpd-mod_userdir.conf | 7 +++++++ 24 files changed, 215 insertions(+) diff --git a/lighttpd-mod_access.conf b/lighttpd-mod_access.conf index ec92c9b..dbd3f24 100644 --- a/lighttpd-mod_access.conf +++ b/lighttpd-mod_access.conf @@ -1,3 +1,11 @@ server.modules += ( "mod_access" ) + +## deny access the file-extensions +# +# ~ is for backupfiles from vi, emacs, joe, ... +# .inc is often used for code includes which should in general not be part +# of the document-root +url.access-deny = ( "~", ".inc" ) + diff --git a/lighttpd-mod_accesslog.conf b/lighttpd-mod_accesslog.conf index 863ca44..0c9b4e4 100644 --- a/lighttpd-mod_accesslog.conf +++ b/lighttpd-mod_accesslog.conf @@ -1,3 +1,7 @@ +#### accesslog module + server.modules += ( "mod_accesslog" ) + +accesslog.filename = "/var/log/lighttpd/access.log" diff --git a/lighttpd-mod_alias.conf b/lighttpd-mod_alias.conf index 2c2818d..ea587de 100644 --- a/lighttpd-mod_alias.conf +++ b/lighttpd-mod_alias.conf @@ -1,3 +1,8 @@ server.modules += ( "mod_alias" ) + +#### alias module +#alias.url = ( +# "/cgi-bin/" => "/usr/lib/cgi-bin", +#) diff --git a/lighttpd-mod_auth.conf b/lighttpd-mod_auth.conf index bcd8797..6c4688c 100644 --- a/lighttpd-mod_auth.conf +++ b/lighttpd-mod_auth.conf @@ -1,3 +1,40 @@ server.modules += ( "mod_auth" ) + +#### auth module +## read authentication.txt for more info +## debugging +# 0 for off, 1 for 'auth-ok' messages, 2 for verbose debugging +#auth.debug = 1 +## type of backend +# plain, htpasswd, ldap or htdigest +#auth.backend = "plain" +# filename of the password storage +## for plain +#auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user" +#auth.backend.plain.groupfile = "/etc/lighttpd/lighttpd.group" +## for htpasswd +#auth.backend.htpasswd.userfile = "/etc/lighttpd/lighttpd-htpasswd.user" +## for htdigest +#auth.backend.htdigest.userfile = "/etc/lighttpd/lighttpd-htdigest.user" +## for ldap +# the $ in auth.backend.ldap.filter is replaced by the +# 'username' from the login dialog +#auth.backend.ldap.hostname = "localhost" +#auth.backend.ldap.base-dn = "dc=my-domain,dc=com" +#auth.backend.ldap.filter = "(uid=$)" + +#auth.require = ( +# "/server-status" => ( +# "method" => "digest", +# "realm" => "download archiv", +# "require" => "user=jan" +# ), +# "/server-info" => ( +# "method" => "digest", +# "realm" => "download archiv", +# "require" => "valid-user" +# ) +#) + diff --git a/lighttpd-mod_cgi.conf b/lighttpd-mod_cgi.conf index 46aa5cc..bd59fcd 100644 --- a/lighttpd-mod_cgi.conf +++ b/lighttpd-mod_cgi.conf @@ -1,3 +1,10 @@ server.modules += ( "mod_cgi" ) + +#### CGI module +#cgi.assign = ( +# ".pl" => "/usr/bin/perl", +# ".cgi" => "/usr/bin/perl", +#) + diff --git a/lighttpd-mod_cml.conf b/lighttpd-mod_cml.conf index 1e2e6f3..3a3baea 100644 --- a/lighttpd-mod_cml.conf +++ b/lighttpd-mod_cml.conf @@ -1,3 +1,9 @@ server.modules += ( "mod_cml" ) + +## for mod_cml +## don't forget to add index.cml to server.indexfiles +# cml.extension = ".cml" +# cml.memcache-hosts = ( "127.0.0.1:11211" ) + diff --git a/lighttpd-mod_compress.conf b/lighttpd-mod_compress.conf index 1f7d348..9b22d1c 100644 --- a/lighttpd-mod_compress.conf +++ b/lighttpd-mod_compress.conf @@ -1,3 +1,7 @@ server.modules += ( "mod_compress" ) + +#### compress module +#compress.cache-dir = "/tmp/lighttpd/cache/compress/" +#compress.filetype = ("text/plain", "text/html") diff --git a/lighttpd-mod_dirlisting.conf b/lighttpd-mod_dirlisting.conf index 56279bc..bb5b522 100644 --- a/lighttpd-mod_dirlisting.conf +++ b/lighttpd-mod_dirlisting.conf @@ -1,3 +1,6 @@ server.modules += ( "mod_dirlisting" ) + +## virtual directory listings +#server.dir-listing = "enable" diff --git a/lighttpd-mod_evasive.conf b/lighttpd-mod_evasive.conf index eb3e5a1..213f8c1 100644 --- a/lighttpd-mod_evasive.conf +++ b/lighttpd-mod_evasive.conf @@ -1,3 +1,10 @@ server.modules += ( "mod_evasive" ) + +#### evasive module +## +## Limits number of connections per IP +## +#evasive.max-conns-per-ip = 5 + diff --git a/lighttpd-mod_evhost.conf b/lighttpd-mod_evhost.conf index 5b1b512..e7cf626 100644 --- a/lighttpd-mod_evhost.conf +++ b/lighttpd-mod_evhost.conf @@ -1,3 +1,14 @@ server.modules += ( "mod_evhost" ) + +# define a pattern for the host url finding +# %% => % sign +# %0 => domain name + tld +# %1 => tld +# %2 => domain name without tld +# %3 => subdomain 1 name +# %4 => subdomain 2 name +# +#evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/" + diff --git a/lighttpd-mod_expire.conf b/lighttpd-mod_expire.conf index 427dab8..99d8f4c 100644 --- a/lighttpd-mod_expire.conf +++ b/lighttpd-mod_expire.conf @@ -1,3 +1,10 @@ server.modules += ( "mod_expire" ) + + +#### expire module +#expire.url = ( +# "/buggy/" => "access 2 hours", +# "/asdhas/" => "access plus 1 seconds 2 minutes", +#) diff --git a/lighttpd-mod_fastcgi.conf b/lighttpd-mod_fastcgi.conf index 0dcd34e..a255fec 100644 --- a/lighttpd-mod_fastcgi.conf +++ b/lighttpd-mod_fastcgi.conf @@ -1,3 +1,28 @@ server.modules += ( "mod_fastcgi" ) + +#### fastcgi module +## read fastcgi.txt for more info +#fastcgi.debug = 1 +#fastcgi.server = ( +# ".php" => ( +# "localhost" => ( +# "socket" => "/var/run/php/php-fastcgi.sock", +# "bin-path" => "/usr/bin/php.fcgi", +# ) +# ) +#) + +#### standalone of php-fcgi +# if you want to use standalone version of php.fcgi +# install php-fcgi-init , start php-fcgi and then start lighttpd +# +#fastcgi.server = ( +# ".php" => ( +# ( "host" => "127.0.0.1", +# "port" => 1026, +# ) +# ) +#) + diff --git a/lighttpd-mod_indexfile.conf b/lighttpd-mod_indexfile.conf index 8911815..5b08b73 100644 --- a/lighttpd-mod_indexfile.conf +++ b/lighttpd-mod_indexfile.conf @@ -1,3 +1,12 @@ server.modules += ( "mod_indexfile" ) + + +# files to check for if .../ is requested +server.indexfiles = ( + "index.php", + "index.html", + "index.htm", + "default.htm", +) diff --git a/lighttpd-mod_proxy.conf b/lighttpd-mod_proxy.conf index 27684b8..52b11db 100644 --- a/lighttpd-mod_proxy.conf +++ b/lighttpd-mod_proxy.conf @@ -1,3 +1,15 @@ server.modules += ( "mod_proxy" ) + +#### proxy module +## read proxy.txt for more info +#proxy.server = ( +# ".php" => ( +# "localhost" => ( +# "host" => "192.168.0.101", +# "port" => 80, +# ) +# ) +#) + diff --git a/lighttpd-mod_redirect.conf b/lighttpd-mod_redirect.conf index ea3ea95..99e9b65 100644 --- a/lighttpd-mod_redirect.conf +++ b/lighttpd-mod_redirect.conf @@ -1,3 +1,12 @@ server.modules += ( "mod_redirect" ) + +#url.redirect = ( +# "^/wishlist/(.+)" => "http://www.123.org/$1", +#) +#### both rewrite/redirect support back reference to regex conditional using %n +#$HTTP["host"] =~ "^www\.(.*)" { +# url.redirect = ( "^/(.*)" => "http://%1/$1" ) +#} + diff --git a/lighttpd-mod_rewrite.conf b/lighttpd-mod_rewrite.conf index 3850636..f2f8b03 100644 --- a/lighttpd-mod_rewrite.conf +++ b/lighttpd-mod_rewrite.conf @@ -1,3 +1,8 @@ server.modules += ( "mod_rewrite" ) + +#### url handling modules (rewrite, redirect, access) +#url.rewrite = ( +# "^/$" => "/server-status", +#) diff --git a/lighttpd-mod_rrdtool.conf b/lighttpd-mod_rrdtool.conf index 0da9240..8343e7a 100644 --- a/lighttpd-mod_rrdtool.conf +++ b/lighttpd-mod_rrdtool.conf @@ -1,3 +1,8 @@ server.modules += ( "mod_rrdtool" ) + +#### rrdtool +rrdtool.binary = "/usr/bin/rrdtool" +#rrdtool.db-name = "/var/www/lighttpd.rrd" + diff --git a/lighttpd-mod_setenv.conf b/lighttpd-mod_setenv.conf index f32001b..d9bde00 100644 --- a/lighttpd-mod_setenv.conf +++ b/lighttpd-mod_setenv.conf @@ -1,3 +1,7 @@ server.modules += ( "mod_setenv" ) + +#### setenv +#setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" ) +#setenv.add-response-header = ( "X-Secret-Message" => "42" ) diff --git a/lighttpd-mod_simple_vhost.conf b/lighttpd-mod_simple_vhost.conf index 6dbcca6..5bed037 100644 --- a/lighttpd-mod_simple_vhost.conf +++ b/lighttpd-mod_simple_vhost.conf @@ -1,3 +1,18 @@ server.modules += ( "mod_simple_vhost" ) + +###### virtual hosts +## +## If you want name-based virtual hosting add the next three settings and load +## mod_simple_vhost +## +## document-root = +## virtual-server-root + virtual-server-default-host + virtual-server-docroot +## or +## virtual-server-root + http-host + virtual-server-docroot +## +#simple-vhost.server-root = "/home/weigon/wwwroot/servers/" +#simple-vhost.default-host = "grisu.home.kneschke.de" +#simple-vhost.document-root = "/pages/" + diff --git a/lighttpd-mod_ssi.conf b/lighttpd-mod_ssi.conf index c21bc41..3bd1b0f 100644 --- a/lighttpd-mod_ssi.conf +++ b/lighttpd-mod_ssi.conf @@ -1,3 +1,7 @@ server.modules += ( "mod_ssi" ) + +#### ssi +#ssi.extension = ( ".shtml" ) + diff --git a/lighttpd-mod_staticfile.conf b/lighttpd-mod_staticfile.conf index 8e587d2..c3fe4c4 100644 --- a/lighttpd-mod_staticfile.conf +++ b/lighttpd-mod_staticfile.conf @@ -1,3 +1,10 @@ server.modules += ( "mod_staticfile" ) + +## +# which extensions should not be handle via static-file transfer +# +# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi +static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) + diff --git a/lighttpd-mod_status.conf b/lighttpd-mod_status.conf index 62ba395..ab64104 100644 --- a/lighttpd-mod_status.conf +++ b/lighttpd-mod_status.conf @@ -1,3 +1,8 @@ server.modules += ( "mod_status" ) + +#### status module +status.status-url = "/server-status" +status.config-url = "/server-config" +status.statistics-url = "/server-stats" diff --git a/lighttpd-mod_trigger_b4_dl.conf b/lighttpd-mod_trigger_b4_dl.conf index 8bb5b28..d5b952c 100644 --- a/lighttpd-mod_trigger_b4_dl.conf +++ b/lighttpd-mod_trigger_b4_dl.conf @@ -1,3 +1,12 @@ server.modules += ( "mod_trigger_b4_dl" ) + +## for mod_trigger_b4_dl +# trigger-before-download.gdbm-filename = "/home/weigon/testbase/trigger.db" +# trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" ) +# trigger-before-download.trigger-url = "^/trigger/" +# trigger-before-download.download-url = "^/download/" +# trigger-before-download.deny-url = "http://127.0.0.1/index.html" +# trigger-before-download.trigger-timeout = 10 + diff --git a/lighttpd-mod_userdir.conf b/lighttpd-mod_userdir.conf index 8d714db..4fcd998 100644 --- a/lighttpd-mod_userdir.conf +++ b/lighttpd-mod_userdir.conf @@ -1,3 +1,10 @@ server.modules += ( "mod_userdir" ) + +#### userdir module +#userdir.path = "public_html" +#userdir.exclude-user = ( "root", "postmaster" ) +# +## if set, only users from this list may use the feature +#userdir.include-user = "" -- 2.44.0