2014-03-14 53 views
0

我有一個域名在我的本地主機運行兩個域,說test.com使用Apache指向一個節點服務器端口,即4000如何在一個盒子

現在我想建立另一個子域,請使用不同節點端口在同一個框中說subdomain.test.com。

眼下,test.com是工作的方式一樣,先擊中Apache和使用重定向像下面

ProxyPass/http://localhost:4000/ 
ProxyPassReverse/http://localhost:4000/ 

請讓我知道在hpptd-proxy.conf重定向規則項節點服務器如果任何人對上述問題有任何想法。

由於提前,

回答

0

如何使用虛擬主機的重定向過程

<VirtualHost subdomain.test.com:80> 
    ProxyPass/http://localhost:5000/ 
    ProxyPassReverse/http://localhost:5000/ 
</VirtualHost> 

<VirtualHost test.com:80> 
    ProxyPass/http://localhost:4000/ 
    ProxyPassReverse/http://localhost:4000/ 
</VirtualHost> 
相關問題