我想在一台服务器上同时发布tomcat网站和rails网站.
域名里面不能带端口号,对吧。
那我怎么能让www.mydomain.com 访问localhost:3000,
而www.anotherdomain.com 访问localhost:8080.
google了很久也没找到答案,各位大侠能否帮帮忙?万分感谢!!!
我想在一台服务器上同时发布tomcat网站和rails网站.
域名里面不能带端口号,对吧。
那我怎么能让www.mydomain.com 访问localhost:3000,
而www.anotherdomain.com 访问localhost:8080.
google了很久也没找到答案,各位大侠能否帮帮忙?万分感谢!!!
$HTTP["host"] == "www.mydomain.com" {
proxy.server = ( "" =>
(
(
"host" => "127.0.0.1",
"port" => 3000
)
)
)
}
$HTTP["host"] == "www.anotherdomain.com" {
proxy.server = ( "" =>
(
(
"host" => "127.0.0.1",
"port" => 8080
)
)
)
}