2015-03-13 123 views

回答

0

解決了!第一件要做的就是聽端口,例如:如果我們試圖做的每一個請求都會被重定向到http://anotherhost:8080/dir,那麼我們應該監聽端口8080,因此,下一行必須在httpd.conf中。

Listen 8080 

然後,我們需要配置代理:

ProxyRequests On 

ProxyPass /dir http://anotherhost:8080/dir 
ProxyPassReverse /dir http://anotherhost:8080/dir 

我希望這能幫助別人

問候

相關問題