I cannot get the
 

response.sendRedirect(response.encodeRedirectURL(path));

 

method call to include the frontend host name!!

 

Architechture like this

 

internet        private netw

layer            layer

<proxy>---<orion>----<db>

 

whenever surfing via the proxy and a response sendredirect is called I end up in the private network ( ip 192.168.1.123) instead of the proxy address.

My web.xml looks like this:

<web-site host="[ALL]" port="80" display-name="Aller WebSite" virtual-hosts="aller.localhost">
 <!-- The default web-app for this site, bound to the root -->
 <frontend host="proxy.flowinteractive.se" port="80"/>
 <default-web-app application="default" name="defaultWebApp" />

 <!-- Uncomment this to activate the news app -->
 <!-- <web-app application="news" name="news-web" root="/news" /> -->

 <!-- Access Log, where requests are logged to -->
 <access-log path="../log/aller-web-access.log" />
<!-- <web-app application="admin" name="admin-web" root="/admin" /> -->
 <web-app application="aller" name="aller-web" root="/aller" />
</web-site>

 

I would greatly appreciate if anyone who has solved this can give me some insight other than using absolute urls.

 

Thanks in advance

 

 

Johan Fredriksson

Reply via email to