$HTTP["host"] == "localhost" {
$HTTP["url"] =~ ".jsp|.go|.do|action" {
proxy.balance = "hash"
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 8080 ) ))
}
}
这里的action是指http://localhost/action开头的所有url,都能转换到tomcat
$HTTP["url"] =~ ".jsp|.go|.do|action" {
proxy.balance = "hash"
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 8080 ) ))
}
}
这里的action是指http://localhost/action开头的所有url,都能转换到tomcat