2010-08-22 15:22:10 +02:00
|
|
|
var.basedir = "/var/www/localhost"
|
|
|
|
var.logdir = "/var/log/lighttpd"
|
|
|
|
var.statedir = "/var/lib/lighttpd"
|
|
|
|
|
|
|
|
server.modules = (
|
|
|
|
"mod_rewrite",
|
|
|
|
# "mod_redirect",
|
|
|
|
"mod_alias",
|
|
|
|
"mod_access",
|
|
|
|
"mod_fastcgi",
|
|
|
|
# "mod_cml",
|
|
|
|
# "mod_trigger_b4_dl",
|
|
|
|
# "mod_auth",
|
|
|
|
# "mod_status",
|
|
|
|
# "mod_setenv",
|
|
|
|
# "mod_proxy",
|
|
|
|
# "mod_simple_vhost",
|
|
|
|
# "mod_evhost",
|
|
|
|
# "mod_userdir",
|
|
|
|
# "mod_compress",
|
|
|
|
# "mod_ssi",
|
|
|
|
# "mod_usertrack",
|
|
|
|
# "mod_expire",
|
|
|
|
# "mod_secdownload",
|
|
|
|
# "mod_rrdtool",
|
|
|
|
# "mod_webdav",
|
|
|
|
"mod_accesslog"
|
|
|
|
)
|
|
|
|
|
|
|
|
include "mime-types.conf"
|
|
|
|
|
|
|
|
# {{{ server settings
|
|
|
|
server.username = "lighttpd"
|
|
|
|
server.groupname = "lighttpd"
|
|
|
|
|
|
|
|
server.document-root = var.basedir + "/htdocs"
|
|
|
|
server.pid-file = "/var/run/lighttpd.pid"
|
|
|
|
|
|
|
|
server.errorlog = var.logdir + "/error.log"
|
|
|
|
# log errors to syslog instead
|
|
|
|
# server.errorlog-use-syslog = "enable"
|
|
|
|
|
|
|
|
server.indexfiles = ("index.php", "index.html",
|
|
|
|
"index.htm", "default.htm")
|
|
|
|
|
|
|
|
# server.tag = "lighttpd"
|
|
|
|
|
|
|
|
server.follow-symlink = "enable"
|
|
|
|
|
|
|
|
|
|
|
|
# {{{ mod_accesslog
|
|
|
|
accesslog.filename = var.logdir + "/access.log"
|
|
|
|
# }}}
|
|
|
|
|
|
|
|
# {{{ mod_dirlisting
|
|
|
|
# enable directory listings
|
|
|
|
dir-listing.activate = "disable"
|
|
|
|
#
|
|
|
|
|
|
|
|
url.access-deny = ("~", ".inc")
|
|
|
|
|
|
|
|
|
|
|
|
# begin TeamPlayer config
|
2011-04-10 05:45:35 +02:00
|
|
|
server.max-request-size = 100000
|
2010-08-22 15:22:10 +02:00
|
|
|
fastcgi.server = (
|
|
|
|
"/teamplayer.fcgi" => (
|
|
|
|
"main" => (
|
|
|
|
"socket" => "TP_DB/teamplayer.sock",
|
|
|
|
"check-local" => "disable",
|
|
|
|
)
|
|
|
|
),
|
|
|
|
)
|
|
|
|
alias.url = (
|
|
|
|
"/m" => "TP_HOME/web/media/",
|
|
|
|
)
|
|
|
|
|
|
|
|
url.rewrite-once = (
|
|
|
|
"^(/m.*)$" => "$1",
|
|
|
|
"^(/.*)$" => "/teamplayer.fcgi$1",
|
|
|
|
)
|