rendered paste bodyserver.modules = (
"mod_rewrite",
"mod_redirect",
"mod_alias",
"mod_access",
"mod_auth",
"mod_status",
"mod_setenv",
"mod_proxy_core",
"mod_proxy_backend_http",
"mod_proxy_backend_fastcgi",
"mod_userdir",
"mod_cgi",
"mod_compress",
"mod_ssi",
"mod_expire",
"mod_rrdtool",
"mod_accesslog" )
#server.bind = "64.27.25.246"
#server.error-handler-404 = "/error-handler.html"
server.pid-file = "/var/run/lighttpd.pid"
server.port = 8090
server.event-handler = "freebsd-kqueue"
server.network-backend = "freebsd-sendfile"
server.document-root = "/var/www/lighttpd/data"
server.errorlog = "/var/www/lighttpd/log/lighttpd.error.log"
accesslog.filename = "/var/www/lighttpd/log/lighttpd.access.log"
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm","index.rb" )
compress.filetype = ( "text/plain", "text/html", "text/css", "text/javascript" )
compress.cache-dir = "/tmp/cache"
expire.url = ( "" => "access 3 days" )
url.access-deny = ( "~", ".inc" )
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
mimetype.assign = (
".pdf" => "application/pdf",
".sig" => "application/pgp-signature",
".spl" => "application/futuresplash",
".class" => "application/octet-stream",
".ps" => "application/postscript",
".torrent" => "application/x-bittorrent",
".dvi" => "application/x-dvi",
".gz" => "application/x-gzip",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".tar.gz" => "application/x-tgz",
".tgz" => "application/x-tgz",
".tar" => "application/x-tar",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".xbm" => "image/x-xbitmap",
".xpm" => "image/x-xpixmap",
".xwd" => "image/x-xwindowdump",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".asc" => "text/plain",
".c" => "text/plain",
".cpp" => "text/plain",
".log" => "text/plain",
".conf" => "text/plain",
".text" => "text/plain",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".mpeg" => "video/mpeg",
".mpg" => "video/mpeg",
".mov" => "video/quicktime",
".qt" => "video/quicktime",
".avi" => "video/x-msvideo",
".asf" => "video/x-ms-asf",
".asx" => "video/x-ms-asf",
".wmv" => "video/x-ms-wmv",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar"
)
# Use the "Content-Type" extended attribute to obtain mime type if possible
#mimetype.use-xattr = "enable"
userdir.path = "public_html"
myroot = "/home/victori/servers"
$HTTP["host"] =~ "^letsgetdugg.com$|^www.letsgetdugg.com$" {
server.document-root ="/home/victori/servers/letsgetdugg/root"
dir-listing.activate = "disable"
#accesslog.filename = "/var/www/lighttpd/log/letsgetdugg.access.log"
#server.errorlog = "/var/www/lighttpd/log/letsgetdugg.error.log"
$HTTP["url"] !~ "static/" {
proxy-core.protocol = "http"
proxy-core.balancer = "round-robin"
proxy-core.check-local = "enable"
proxy-core.allow-x-sendfile = "enable"
proxy-core.backends = ( "localhost:9010" )
proxy-core.max-pool-size = 4
}
}
$HTTP["host"] =~ "^typeface-project.org$|^www.typeface-project.org$" {
server.document-root ="/home/victori/servers/typeface-project.org/root"
dir-listing.activate = "disable"
#accesslog.filename = "/var/www/lighttpd/log/typeface.access.log"
#server.errorlog = "/var/www/lighttpd/log/typeface.error.log"
#setenv.add-request-header = ( "X-Forwarded-For" => "192.168.1.20" )
$HTTP["url"] !~ "static/" {
proxy-core.protocol = "http"
proxy-core.balancer = "round-robin"
proxy-core.check-local = "enable"
proxy-core.allow-x-sendfile = "enable"
proxy-core.backends = ( "localhost:9020" )
proxy-core.max-pool-size = 4
}
}
$HTTP["host"] =~ "^tattoomdla.com$|^www.tattoomdla.com$|^tattoomdcorona.com$|^www.tattoomdcorona.com$" {
server.document-root="/home/tattoomd/wordpress/"
#url.rewrite-once = ( "^/([^\.]+)$" => "/$1.php" )
#alias.url = ( "?page_id=11" => "/PriceList" )
#accesslog.filename = "/var/www/lighttpd/log/tattoomd.access.log"
#server.errorlog = "/var/www/lighttpd/log/tattoomd.error.log"
}
$HTTP["host"] =~ "^daysoc.com$|^www.daysoc.com$" {
server.document-root = myroot+"/daysoc.com/public"
#accesslog.filename = "/var/www/lighttpd/log/daysoc.access.log"
#server.errorlog = "/var/www/lighttpd/log/daysoc.error.log"
$HTTP["url"] !~ "\.(jpg|gif|png|js|css|html|swf|mp3|mpg|avi|htm)$" {
proxy-core.protocol = "http"
proxy-core.balancer = "round-robin"
proxy-core.check-local = "disable"
proxy-core.allow-x-sendfile = "enable"
proxy-core.backends = ( "localhost:8180" )
proxy-core.max-pool-size = 4
}
}
$HTTP["host"] == "fabulouslyfifty.com" {
url.redirect = ( "^/(.*)" => "http://fabulously50.com/$1", )
}
$HTTP["host"] == "fabulously50.com" {
server.document-root=myroot+"/fabulously50.com"
}
$HTTP["host"] == "fabsisters.net" {
url.redirect = ( "^/(.*)" => "http://fabsisters.com/$1", )
}
$HTTP["host"] == "fabsisters.com" {
server.document-root=myroot+"/fabsisters.com"
}
$HTTP["host"] =~ "^www.wansanity.com$|^wansanity.com$" {
server.document-root = "/home/gamerfund/gambit/root"
#accesslog.filename = "/var/www/lighttpd/log/wansanity.access.log"
#server.errorlog = "/var/www/lighttpd/log/wansanity.error.log"
$HTTP["url"] !~ "\.(jpg|gif|png|js|css|html|swf|mp3|mpg|avi|htm)$" {
proxy-core.protocol = "http"
proxy-core.balancer = "round-robin"
proxy-core.check-local = "disable"
proxy-core.allow-x-sendfile = "enable"
proxy-core.backends = ( "localhost:8180" )
proxy-core.max-pool-size = 4
}
}
$HTTP["host"] == "users.wansanity.com" {
server.document-root = "/home/gamerfund/gamerfund/public"
}
$HTTP["host"] =~ "^tdmotors.net$|^www.tdmotors.net$" {
server.document-root = "/home/tdmotors/public_html"
}
$HTTP["host"] == "mail.fabulously40.com" {
server.document-root = "/usr/local/www/squirrelmail"
url.rewrite = ( "^/$" => "/index.php" )
}
$HTTP["host"] == "temp.fabulously40.com" {
server.document-root = myroot+"/www.fabulously40.com/public"
}
#$HTTP["host"] =~ "^www\.(.*)$" {
# url.redirect = (
# "^/(.*)" => "http://%1/$1",
# )
#}
$HTTP["host"] =~ "^www.fabulously40.com$|^fabulously40.com$|^fabulouslyforty.com$|^www.fabulouslyforty.com$" {
server.document-root = myroot+"/www.fabulously40.com/public"
#accesslog.filename = "/var/www/lighttpd/log/fab40.access.log"
#server.errorlog = "/var/www/lighttpd/log/fab40.error.log"
compress.filetype = ( "text/plain", "text/html", "text/css", "text/javascript" )
compress.cache-dir = "/tmp/fab40"
$HTTP["url"] !~ "\.(jpg|gif|png|js|css|html|swf|mp3|mpg|avi|htm)$" {
proxy-core.protocol = "http"
proxy-core.balancer = "round-robin"
proxy-core.check-local = "disable"
proxy-core.allow-x-sendfile = "enable"
proxy-core.backends = ( "localhost:8000" )
proxy-core.max-pool-size = 4
}
}
##
## Format: <errorfile-prefix><status-code>.html
## -> ..../status-404.html for 'File not found'
#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
## virtual directory listings
#dir-listing.activate = "enable"
## enable debugging
# debug.log-request-header = "enable"
# debug.log-response-header = "enable"
# debug.log-request-handling = "enable"
# debug.log-file-not-found = "enable"
### only root can use these options
#
# chroot() to directory (default: no chroot() )
#server.chroot = "/"
## change uid to <uid> (default: don't care)
server.username = "www"
## change uid to <uid> (default: don't care)
server.groupname = "www"
#### fastcgi module
## read fastcgi.txt for more info
# proxy-core.protocol = "fastcgi"
# proxy-core.balancer = "round-robin"
# proxy-core.check-local = "enable"
# proxy-core.allow-x-sendfile = "enable"
# proxy-core.backends = ( "unix:/tmp/php-fastcgi.sock" )
# proxy-core.max-pool-size = 16
#### CGI module
cgi.assign = ( ".pl" => "/usr/local/bin/perl",
".cgi" => "/usr/local/bin/perl",
".rb" => "/usr/local/bin/ruby" )
#### SSL engine
#ssl.engine = "enable"
#ssl.pemfile = "server.pem"
#### status module
status.status-url = "/server-status"
status.config-url = "/server-config"
#### auth module
## read authentication.txt for more info
auth.backend = "plain"
auth.backend.plain.userfile = "/usr/local/etc/lighttpd.user"
#auth.backend.plain.groupfile = "lighttpd.group"
#auth.backend.ldap.hostname = "localhost"
#auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
#auth.backend.ldap.filter = "(uid=$)"
#auth.require = ( "/~victori/dav/" => ( "method" => "digest", "realm" => "security", "require" => "valid-user" ) )
#auth.require = ( "/server-status" =>
# (
# "method" => "digest",
# "realm" => "download archiv",
# "require" => "user=jan"
# ),
# "/server-config" =>
# (
# "method" => "digest",
# "realm" => "download archiv",
# "require" => "valid-user"
# )
# )
#### url handling modules (rewrite, redirect, access)
#url.rewrite = ( "^/$" => "/server-status" )
#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" )
#}
#
# 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/"
#### expire module
#expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
#### ssi
#ssi.extension = ( ".shtml" )
#### rrdtool
rrdtool.binary = "/usr/local/bin/rrdtool"
rrdtool.db-name = "/var/www/lighttpd/lighttpd.rrd"
#### setenv
#setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
#setenv.add-response-header = ( "X-Secret-Message" => "42" )
## 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
## for mod_cml
## don't forget to add index.cml to server.indexfiles
#cml.extension = ".cml"
#cml.memcache-hosts = ( "127.0.0.1:11211" )
#### variable usage:
## variable name without "." is auto prefixed by "var." and becomes "var.bar"
#bar = 1
#var.mystring = "foo"
## integer add
#bar += 1
## string concat, with integer cast as string, result: "www.foo1.com"
#server.name = "www." + mystring + var.bar + ".com"
## array merge
#index-file.names = (foo + ".php") + index-file.names
#index-file.names += (foo + ".php")
#### include
#include /etc/lighttpd/lighttpd-inc.conf
## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
#include "lighttpd-inc.conf"
#### include_shell
#include_shell "echo var.a=1"
## the above is same as:
#var.a=1