Apache服务器背后的Pentaho:



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

我也有一个Apache web服务器监听端口80,这里有一个问题: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

最新更新