All pastes #978113 Raw Edit

Lighttpd hosts configuration

public text v1 · immutable
·published 2008-04-09 09:36 UTC
rendered paste body
#Server and VHOSTS

$HTTP["host"] != "(forum|forums|ma|mphp|smarty.mphp|www).itech7.com$" {

url.redirect = ("/(.*)" => "http://www.itech7.com/$1")

}

server.port                = 80

server.name = "www.itech7.com"

dir-listing.activate       = "disable"

server.document-root        = "/home/lighttpd/public/main/"

$HTTP["host"] == "ma.itech7.com" {

server.document-root = "/home/lighttpd/public/phpmyadmin/"

server.name = "ma.itech7.com"

server.port = 80

}

url.rewrite-once = ("^/content/(.*)$" => "index.php/$1")

url.rewrite = ("^/component/(.*)$" => "index.php/$1")

$HTTP["url"] == "/google88339b850fcddf34.html$" {

url.rewrite-once = ("/google88339b850fcddf34.html$" => "http://www.itech7.com/google88339b850fcddf34.html")

}

$HTTP["host"] == "mphp.itech7.com" {

server.document-root = "/home/lighttpd/public/php_manual"

#url.rewrite = ("^/(install|faq|function|ref|internals2|features|security|language)\.(.*)$" => "/$1.$2.html")

}

$HTTP["host"] == "smarty.mphp.itech7.com" {

server.document-root = "/home/lighttpd/public/smarty_manual"

dir-listing.activate = "enable"

}

$HTTP["host"] == "forums.itech7.com" {

server.document-root = "/home/lighttpd/public/phpBB3/"

dir-listing.activate = "disable"

url.access-deny = ("config.php","common.php","/cache/","/store/","/files/","/images/avatars/upload/",".htaccess")

#url.rewrite = ("/topic/[0-9]+" => "/viewtopic.php?t=$1",
#              "/forum/[0-9]+" => "/viewforum.php?f=$1")

}

$HTTP["host"] == "forum.itech7.com" {

server.document-root = "/home/lighttpd/public/phpBB3/"

dir-listing.activate = "disable"

url.access-deny = ("config.php","common.php","/cache/","/store/","/files/","/images/avatars/upload/",".htaccess")

url.rewrite = ("/topic/[0-9]+" => "/viewtopic.php?t=$1",
               "/forum/[0-9]+" => "/viewforum.php?f=$1")

}

$HTTP["host"] == "forums.itech7.com" {

url.redirect = ("/(.*)$" => "http://forum.itech7.com/$1")

}