2015-03-13 122 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 

我希望这能帮助别人

问候

相关问题