我在2台windows 服务器设置了cognos服务器
利用CM集群和网关集群
web服务器使用的是iis
然后在一台AIX上面部署apache 做反向代理到2台windows 服务器上面
系统环境如下
2台windows 服务器
cognos 访问地址
http://xx.xx.xx.162/ibmcognos http://xx.xx.xx.163/ibmcognoscognos cm
http://xx.xx.xx.162:9300http://xx.xx.xx.163:9300 aix apache 服务ip
xxx.xxx.xxx.157
aix上面部署了apache 2.2.19
使用 mod_proxy进行反向代理
我试过2次
配置如下
ProxyRequests Off
ProxyPass /cognos balancer://cognos stickysession=jsessionid nofailover=On
BalancerMember
http://xx.xx.xx.162/ loadfactor=1 route=iis162 smax=5 max=20 ttl=120 retry=300 timeout=15
BalancerMember
http://xx.xx.xx.163/ loadfactor=1 route=iis163 smax=5 max=20 ttl=120 retry=300 timeout=15
这样使用
http://xxx.xxx.xxx.157/cognos/ibmcognos可以访问到系统
但是地址栏的ip 也会随机跳转到162 或者163 服务器
同时不能使用url传参数访问具体报表
为了试验。我在iis上面新建了一个站点
采用端口8088
访问地址为
http://xx.xx.xx.162:8088 http://xx.xx.xx.163:8088 使用这样的配置
ProxyPass /cognos
http://xxx.xxx.xxx.163:8088ProxyPassReverse /cognos
http://xxx.xxx.xxx.163:8088ProxyPass /cgi-bin
http://xxx.xxx.xxx:8088/cgi-bin ProxyPassReverse /cgi-bin
http://xxx.xxx.xxx.163:8088/cgi-bin ProxyPass /p2pd
http://xxx.xxx.xxx:9300/p2pdProxyPassReverse /p2pd
http://xxx.xxx.xxx:9300/p2pd打开
http://xx.xx.xx.157/cognos可以进入系统,但是会丢失系统所有的图片
就类似我们没有把webcontent 烤入 webappsp2pd 的效果
我想实现的效果为
访问
http://xx.xx.xx.157/cognos会随机到后台某一个服务器
地址栏一样显示使用ip为157访问系统
同时可以使用url传参数打开指定报表