All pastes #288921 Raw Edit

Unnamed

public text v1 · immutable
#288921 ·published 2006-12-22 18:35 UTC
rendered paste body
server.modules              = (
                               "mod_rewrite",
                               "mod_redirect",
                               "mod_alias",
                               "mod_access",
#				               "mod_webdav",
                               "mod_cml",
#                              "mod_trigger_b4_dl",
                               "mod_auth",
                               "mod_status",
                               "mod_setenv",
                               "mod_fastcgi",
			                   "mod_scgi",
                               "mod_proxy",
#                              "mod_simple_vhost",
#                              "mod_evhost",
                               "mod_userdir",
                               "mod_cgi",
                               "mod_compress",
                               "mod_ssi",
#                              "mod_usertrack",
                               "mod_expire",
#                              "mod_secdownload",
                               "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                = 80                               
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.cml" ,
                                "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"
}

#alias.url = ( "/mydav/" => "/home/victori/servers" )
#$HTTP["url"] =~ "/mydav.*" {
#  webdav.activate = "enable"
#  webdav.is-readonly = "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"] =~ "^ircmine.com$|^www.ircmine.com$" {
    server.document-root        ="/home/victori/servers/ircmine/root"
    dir-listing.activate        = "disable"
    accesslog.filename          = "/var/www/lighttpd/log/ircmine.access.log"
    server.errorlog             = "/var/www/lighttpd/log/ircmine.error.log"
    $HTTP["url"] !~ "^/static/" {
        scgi.server = ( "" => ( "IRCMine" => ( "host" => "127.0.0.1" , "port" => 9002, "check-local" => "disable" )))
    }
}


$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/" {
        scgi.server = ( "" => ( "Letsgetdugg" => ( "host" => "127.0.0.1" , "port" => 9000, "check-local" => "disable" )))	 
#     fastcgi.server = (
#                  "" => ( "Letsgetdugg" => (
#                      "socket" => "/tmp/fcgi.sock",
#                       "check-local" => "disable"     
#                   ))
#             )
    }
}

$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"
	$HTTP["url"] !~ "static/" {
		scgi.server = ( "" => ( "TypefaceWeb" => ( "host" => "127.0.0.1" , "port" => 9001, "check-local" => "disable" )))
    }
}

$HTTP["host"] =~ "^mithun.org$|^www.mithun.org$" {
	server.document-root="/home/mith/public_html/weblog/"
}

$HTTP["host"] =~ "^tattoomdla.com$|^www.tattoomdla.com$|^tattoomdcorona.com$|^www.tattoomdcorona.com$" {
	server.document-root="/home/tattoomd/wordpress/"
#	url.rewrite-once = ( "^/([^\.]+)$" => "/$1.php" )
	url.rewrite-once = ( "^/Location$" => "/?page_id=10", 
			    "^/PriceList$" => "/?page_id=11",
			    "^/LaserTattooRemoval" => "/?page_id=3",
			    "^/HairRemoval" => "/?page_id=4",
			    "^/fotofacials" => "/?page_id=7",
			    "^/botox"	   => "/?page_id=9",
			    "^/HairLoss"  => "/?page_id=5",
			    "^/flick"	 => "/?page_id=23"
			    )
    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"
    proxy.balance = "fair"
    proxy.server = ( "/" => ( ( "host" => "127.0.0.1" , "port" => 8010 ) ) )
}

$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"] == "temp.uploadbooth.com" {
	server.document-root=myroot+"/uploadbooth.com/public"
}

$HTTP["host"] =~ "^uploadbooth.com$|^www.uploadbooth.com$" {
	server.document-root=myroot+"/uploadbooth.com/public"
	accesslog.filename          = "/var/www/lighttpd/log/uploadbooth.access.log"
	server.errorlog             = "/var/www/lighttpd/log/uploadbooth.error.log" 
    proxy.balance = "fair"
    proxy.server = ( "/" => ( ( "host" => "127.0.0.1" , "port" => 8020 ) ) )
}

$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"] !~ "^/static/" {
        scgi.server = ( "" => ( "Gambit" => ( "host" => "127.0.0.1" , "port" => 9003, "check-local" => "disable" )))
    }
}

$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"
    proxy.balance = "fair"
    proxy.server               = ( "/" => ( ( "host" => "127.0.0.1" , "port" => 8000 ) ) )

}


##
## 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
fastcgi.server             = ( ".php" =>
                               ( "localhost" =>
                                 (
				                    "min-procs" => 1,
                                    "max-procs" => 1,
                                    "socket" => "/tmp/php-fastcgi.socket",
                                    "bin-path" => "/usr/local/bin/php-cgi"
                                 )
                               )
                            )

#### 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 = "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               = ( "/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