tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Pope" <james_p...@hotmail.com>
Subject Relative redirects: Tomcat 5 using machine local hostname instead of the FQDN fr
Date Thu, 09 Sep 2004 07:15:56 GMT
Hi,

I have a Jakarta Tomcat 5 server installed on a Windows 2003 Server machine 
(hostname labsweb1). There is a DNS entry for www.ourcompany.com pointing to 
the ROOT webapp on the labsweb1 server. When I go to 
http://www.mycompany.com/about/ for example, I get the same page as 
http://labsweb1/about/, except that in the web browser the URL remains 
http://www.mycompany.com/about/

However, if an HTTP redirect header is sent, for example from 
http://www.mycompany.com/goto.jsp?page=about then the URL becomes 
http://labsweb1/about/ instead of http://www.mycompany.com/about/

>From what research I've done, this is because Tomcat is configured to use 
the machine's local hostname for resolving redirects, instead of the FQDN 
from the request. Any idea how to configure Tomcat so that it uses the FQDN 
from the request for relative redirects?

Please help if you can, thanks in advance!

-- James

_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous !  
http://search.msn.fr


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message