English 中文(简体)
Web Sphere Portal Backqq Backvertative and RecServer Port()
原标题:WebSphere Portal behind reverse proxy and getServerPort()

我在访问网络星座门户时遇到问题,该门户被部署在反向代理(使用阿帕奇)。 问题是,在检查浏览器发出的吉大港山区申请时,一些请求是针对代理人提出的,有些是直接在网上的Sphere门户网站上提出的。

我阿帕奇组合:

ProxyPassReverseCookieDomain backend-server proxy-server

ProxyPass / http://backend-server:10039/
ProxyPassReverse / http://backend-server:10039/

The problem is, some generated resources contained absolute URIs targeting at backend-server:10039...

我是否应该相信能够适当进入网吧门户,而后又是 proxy?

最佳回答

因为我可以回答我自己的问题,这里的问题是:

在服务器方面,网络用户门户使用request.getServerHost(request.getServer Port()。 将这些方法放在反向代理(发送<代码>Host:的头盔)。 我必须补充:

ProxyPreserveHost On

a) 用于:

com.ibm.ws.webcontainer.extractHostHeaderPort = true
trusthostheaderport = true

additional properties to Web Container in IBM Console: WebSphere application servers -> WebSphere_Portal -> Web Container Settings -> Web Container -> Custom properties.

这些特性如下:

问题回答

I got the same problem few days ago and eventually chose the apache mod_substitute to change these urls with something like this:
Substitute "s|http ://backend-server:10039/|/|i"





相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签