【发布时间】:2014-06-07 22:56:33
【问题描述】:
我一直在尝试在 Hostgator Centos 服务器上托管的网站上复制 ProxyPass 和 ProxyPassReverse。我有一个在 Amazon ec2 上运行的 tomcat 应用程序,其 URL http://myec2address.com:8080/portal/
我在本地 Windows 机器上成功复制了用例,并在 httpd-proxy-html 文件上进行了以下配置。
ProxyPass /portalBI http://{localhost}:8080/portalBI
ProxyPass /sw-style http://{localhost}:8080/sw-style
ProxyPass /portal-style http://{localhost}:8080/portal-style
ProxyPassReverse /portalBI http://{localhost}:8080/agrometricsBI
ProxyPassReverse /sw-style http://{localhost}:8080/sw-style
ProxyPassReverse /portal-style http://{localhost}:8080/portal-style
由于托管网站在共享服务器上,我假设我将不得不修改我的 .htaccess 文件。我尝试了很多技巧,但没有成功。你能帮忙吗?因为centOS,我们需要注意特殊字符吗?
谢谢。
【问题讨论】:
标签: apache .htaccess tomcat proxypass