rendered paste bodyserver.modules = ( "mod_access", "mod_status", "mod_fastcgi", "mod_accesslog", "mod_rewrite", "mod_cgi", "mod_redirect" )
server.document-root = "/usr/local/www/"
server.errorlog = "/var/log/lighttpd.error.log"
index-file.names = ( "index.php", "index.html", "index.htm" )
server.event-handler = "freebsd-kqueue"
server.network-backend = "freebsd-sendfile"
server.max-request-size = 10000
server.max-write-idle = 700
server.max-read-idle = 10
server.max-keep-alive-requests = 0
server.max-keep-alive-idle = 0
server.max-fds = 4096
server.max-connections = 2048
server.stat-cache-engine = "simple"
server.errorlog-use-syslog = "enable"
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",
".jar" => "application/x-java-archive",
".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",
"" => "application/octet-stream",
)
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
server.port = 80
#server.bind = "87.229.108.35"
server.pid-file = "/var/run/lighttpd.pid"
dir-listing.activate = "disable"
server.username = "www"
server.groupname = "www"
status.status-url = "/server-status"
status.config-url = "/server-config"
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/local/bin/php-cgi",
"max-procs" => 10,
"max-load-per-proc" => 2,
"bin-environment" =>(
"PHP_FCGI_CHILDREN" => "10",
"PHP_FCGI_MAX_REQUESTS" => "500"
)
)
)
)
cgi.assign = (
".pl" => "/usr/bin/perl"
)
$HTTP["host"] =~ "^forum\.gigatorrents\.(mine\.nu|ws)$" {
url.redirect = (
"(.*)" => "http://gigatorrents.ws/forum/"
)
}
include_shell "/usr/local/etc/lighttpd/vhost.py webadmin webadmin jTpXqtw2EFqUxCX3"