WebSphere Portal Server - Setting portal hostname, reverse proxy scneario

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > May 2007 > Setting portal hostname, reverse proxy scneario





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Setting portal hostname, reverse proxy scneario

2007-05-31, 7:22 am

I need to set the hostname explicitly, so that the portal server does not take the hostname from the 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 routed unchanged to the client. Now when a user clicks login on the login page (he has surfed to frontserver.com/wps/unauth), he gets redirected to http://wpsserver/wps/auth
enticated. This is not wanted behaviour: We want the redirect to go to http://frontserver.com/wps/authenticated. Also other problems related to the hostname exist (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.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com