2013-03-20 68 views
0

我试图在代理后面运行码头/检票应用程序。这样可以避免用户输入码头的端口号。ProxyPass未设置端口

ProxyPass  /test http://xx.xx.xx.xxx:8012/myapp 
ProxyPassReverse /test http://xx.xx.xx.xxx:8012/myapp 
ProxyPassReverseCookiePath//test 

当我试图连接到xx.xx.xx.xxx/test它重定向到

http://xx.xx.xx.xxx/myapp 

这给了我一个错误信息,因为它试图在端口80上连接? 我该如何写这个代理?

回答

2

简单的解决方案是匹配完全相同的路径。这样的事情:

ProxyPass     /myapp http://localhost:8012/myapp 
ProxyPassReverse    /myapp http://localhost:8012/myapp 
ProxyPassReverseCookieDomain localhost www.publicdomain.net 
+0

好吧,我再次失败。我有http:// localhost:8012/myapp /所以导致一个//。我查看日志时看到了它。不管怎么说,还是要谢谢你。 – DavidVdd 2013-03-21 10:24:08