Tomcat应用程序访问问题


Tomcat application access issues

我已经使用WHM安装了Easy Tomcat 7,并部署了一个应用程序地理服务器。例如,我可以通过IP访问,但不能通过域名访问http://122.122.122.122:8080/geoserver.我想使用以下域名访问该应用程序http://www.example.com/geoserver.我采取了以下步骤:

  1. 我浏览了Cpanel文档,他们说我需要解压缩war文件并部署在public_html文件夹下,但这对我不起作用。

  2. 确实尝试在httpd.conf中example.com域的virtualhost条目下添加Proxypass和Proxy Reversepass行。(这给我带来了问题,因为我想同时运行PHP web应用程序和地理服务器,并且它们正在使用mod_jk进行通信

    ProxyPass/geoserverhttp://122.122.122.122/geoserver

    ProxyPassReverse/geoserverhttp://122.122.122.122/geoserver

看起来您的ProxyPass指令只是缺少tomcat的端口号。尝试:

ProxyPass /geoserver http://122.122.122.122:8080/geoserver
ProxyPassReverse /geoserver http://122.122.122.122:8080/geoserver