rendered paste body# default document-root
server.document-root = "/var/www/html/websites/domain.com"
#server.bind = "localhost"
# TCP port
server.port = 80
# selecting modules
server.modules = (
"mod_access",
#"mod_magnet",
"mod_accesslog",
"mod_proxy",
# "mod_fastcgi",
"mod_rewrite"
)
# read configuration from output of a command
include_shell "/usr/local/bin/confmimetype /etc/mime.types"
accesslog.filename = "/var/log/lighttpd.log"
## where to send error-messages to
server.errorlog = "/var/log/lighttpd.error.log"
# files to check for if .../ is requested
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" )
$HTTP["host"] != "www.domain.com" {
proxy.server = ( "" =>
((
"host" => "127.0.0.1",
"port" => 81
))
)
}
$HTTP["host"] == "www.domain.com" {
proxy.server = (
".css" =>
((
"host" => "127.0.0.1",
"port" => 81
)),
".js" =>
((
"host" => "127.0.0.1",
"port" => 81
)),
".htm" =>
((
"host" => "127.0.0.1",
"port" => 81
)),
".html" =>
((
"host" => "127.0.0.1",
"port" => 81
)),
".php" =>
((
"host" => "127.0.0.1",
"port" => 81
)),
"/" =>
((
"host" => "127.0.0.1",
"port" => 81
))
)
}