05-31-07 12:22 PM
I need to set the hostname explicitly, so that the portal server does not take the hostname from t
he request. My setup has a reverse proxy server that routes an address http://frontserver.com
/wps/* to http://wpsserver/wps/*. So all requests that come to t
he frontserver are routed to requests to the wpsserver and the responses are then route
d unchanged to the client. Now when a user clicks login on the login page (he has surfe
d to frontserver.com/wps/unauth), he gets redirected to http://wpsserver/wps/auth[
/.../authenticated. Also other problems related to the hostname e
xist (hrefs to .css, .js etc also have the wrong host in the address).
I have tried different types of fixes:
- wpconfig.properties: WpsHostName = frontserver.com
- configservices.propertis: host.name = frontserver.com
- httpd.conf: servername = frontserver.com
- WAS console: servers>Web Servers>webserver1> Host name: frontserver.com
- Setting rewrites on the HTTP server:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^wpsserver.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://frontserver.com/$1 [L,R]
(the last 1 shows the level of my frustration :s )
Thanks in advance for help.
[ Post a follow-up to this message ]
|