tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rs...@vgalleries.com (Richard Sand)
Subject Bug: Tomcat setting wrong host on redirect
Date Sun, 30 Jul 2000 00:11:03 GMT
Hi- I've switched to another servlet engine to test and confirmed that this
is a bug in Tomcat.  It should not insert the hostname into the redirect.
If I browse to www.xyz.com:81/servlet/MyServlet and the servlet does a
response.sendRedirect("/nextpage.html"), the browser should go to
www.xyz.com:81/nextpage.html, not the internal hostname of the web server.

Any suggestions?  Tomcat is 3.1, web server is Apache on Solaris (sparc).

-Richard

-----Original Message-----
From: Richard Sand <rsand@vgalleries.com>
To: tomcat-user@jakarta.apache.org <tomcat-user@jakarta.apache.org>
Date: Saturday, July 29, 2000 1:40 AM
Subject: Tomcat setting wrong host on redirect


>Hi all- whenever I do a respond.sendredirect, Tomcat inserts the actual
>hostname of the web server into the redirect, instead of the hostname from
>the request or the hostname as specified in my Apache httpd.conf.  For
>example, externally, my server is known as www.xyz.com:81, whereas on the
>inside it is simply known as "abc".  So on every redirect, the browser is
>told to go to http://abc/mytarget which it then expands to
>www.abc.com/mytarget which is, of course, totally wrong!
>
>Is there some way to force Tomcat to put the proper host into the redirect?
>Perhaps some tag in the server.xml that isn't there at the moment?
Thanks!!
>
>-Richard
>
>


Mime
View raw message