我在服务器上有一个Pentaho网站,监听端口8080。

我也有一个侦听端口80的Apache Web服务器,这就是问题所在:pentaho应该可以通过域pentaho.domain.com进行访问,并且在一台Apache虚拟主机上的配置如下:

   <VirtualHost *:80>
           ServerAdmin webmaster@localhost
           ServerName pentaho.domain.com
           ServerAlias pentaho

           ProxyPass / http://localhost:8080/
           ProxyPassReverse / http://localhost:8080/

   </VirtualHost>


如果我第一次通过pentaho.domain.com访问没有问题(我可以登录),但是此后它将重定向到localhost:8080(这是错误的)。我想念什么?
谢谢。

最佳答案

您需要使用JkMount。

<VirtualHost *:80>
  ServerName reports.xx.com
  ServerAlias reports.xx.com
  JkMount /pentaho workeresb
  JkMount /pentaho/* workeresb
  JkMount /pentaho-style workeresb
  JkMount /pentaho-style/* workeresb
</VirtualHost>


并在单独的文件中定义ajp属性:

worker.list=workeresb
worker.workeresb.type=ajp13
worker.workeresb.host=blade2
worker.workeresb.port=8009
worker.workeresb.lbfactor=50
worker.workeresb.cachesize=10
worker.workeresb.cache_timeout=600
worker.workeresb.socket_keepalive=1
worker.workeresb.socket_timeout=300

09-27 09:44