$HTTP["host"] == "^www.domain.com$" {
server.document-root = "/home/www/pages/domain.com/www/htdocs/"
accesslog.filename = "/home/www/logs/access_www_domain_com.log"
url.rewrite-once = (
"^/(.*)/$" => "/index.php",
)
}
else $HTTP["host"] =~ "\.domain\.com$" {
url.redirect = ( ".*" => "http://www.domain.com$0" )
}
$HTTP["host"] == "^domain.com$" {
server.document-root = "/home/www/pages/domain.com/www/htdocs/"
accesslog.filename = "/home/www/logs/access_www_domain_com.log"
url.rewrite-once = (
"^/(.*)/$" => "/index.php",
)
}
else $HTTP["host"] =~ "\.domain\.com$" {
url.redirect = ( ".*" => "http://domain.com$0" )
}