I'm assuming its redirecting you to the internal web server
name instead of the external name right?
I got around this by using this redirect code.
response.sendRedirect(request.getScheme() + "://" + reqeust.getServerName()
+ ":" + request.getServerPort());
and it makes the code a lot more portable also. Hope this
helps.
Eric Simpson
Jason Rumney wrote:
> I have set up Tomcat 3.1 with Apache + mod_ssl.
>
> All works fine until I perform an external redirect (using
> HttpServletResponse.sendRedirect()), at which point the browser is
> directed to http://server:8443/path instead of https://server:8443/path.
>
> I have searched the FAQ and archive and was surprised not to see any
> mention of this. Has anyone else struck this problem? Is anyone using
> redirects with https successfully?
>
> --
> Jason Rumney <jrumney@att.com>
> AT&T Labs (Redditch, UK)
|