All pastes #331801 Raw Edit

hillct

public text v1 · immutable
#331801 ·published 2007-01-29 06:41 UTC
rendered paste body
# Set Short Hostname and proxy port
var.hostname = "new.hotelchatter.com"
var.scoopport= 1234

$HTTP["host"] =~ hostname + "$" {
        $HTTP["host"] !~ "^www" { url.redirect = ( ".*" => "http://www." + hostname ) }
        var.hostname = "www." + hostname
        server.document-root    = "/home/vhosts/"+hostname+"/public_html/"
        server.errorfile-prefix = "/home/vhosts/"+hostname+"/public_html/pages/"
        url.redirect = (
#               "^/sfomedia$"  => "http://www.example.org/get.php?isdn=$1&page$2",
                "^/backend.rdf" => "http://feeds.feedburner.com/hotelchatter"
        )
        alias.url = (
"^/files/admin/(.*)$" => "/home/vhosts/"+hostname+"/public_html/pages/upload/admin/$1",
"^/files/(.*)$" => "/home/vhosts/"+hostname+"/public_html/pages/upload/user/$1"
        )
        proxy.server =  ( "" =>
                                ( "localhost" =>
                                        (
                                                "host" => "127.0.0.1",
                                                "port" => scoopport
                                        )
                                )
                        )
}