strip port number from request

We recently upgraded our network and proxy servers. After the upgrade the proxy started adding port number of the origin web server to the request.

For example www.xxx.com became www.xxx.com:85 if backend web server was listening to alteon on port 85.

The response from the web server is keeping the port number.We would like to strip the port number off.www.xxx.com:85/foo -> www.xxx.com/foo.

This is only affecting us adversely in 301 and 302 redirects where we have to give new url to client

Message was edited by:

mshamber001

[571 byte] By [mshamber001a] at [2007-11-26 18:04:45]
# 1

Ideally, the reverse proxy should be configured to correctly rewrite URLs for the servers it's reverse proxying. (For example, Sun Java System Web Server Proxy 4.0 can be used as a caching reverse proxy and load balancer. It will automatically rewrite the URLs used in 301 and 302 redirects.)

If for some reason it's not possible to configure the reverse proxy correctly, you can tell Web Server 7.0 which port to use in redirects using the <server-name> element in server.xml:<server-name>www.example.com:80</server-name> If you're using Web Server 6.1 (SP2 or higher), you must instead use the servername attribute in server.xml:<LS ... servername="www.example.com:80" />

elvinga at 2007-7-9 5:35:13 > top of Java-index,Web & Directory Servers,Web Servers...