You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by RK <ra...@trafficpayment.com> on 2007/12/09 10:03:25 UTC
Tomcat URL Redirecting
Hi,
I have my web application running on Tomcat 4.1.31 and SQL Server.
and I have a security certificate issued for my website for
http://www.mydomain.com . So if some one types in https://mydomain.com an
certificate mismatch error is being displayed.
And I know the reason since the names on the certificate don't match.
So my question here is there anyway in Tomcat I can redirect all the
requests coming through https://mydomain.com be forwarded automatically to
https://www.mydomain.com.
Hope I'm clear, can someone please suggest me an idea to resolve this
issue.
Thanks
RK
Re: Tomcat URL Redirecting
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
RK,
RK wrote:
> So my question here is there anyway in Tomcat I can redirect all the
> requests coming through https://mydomain.com be forwarded automatically to
> https://www.mydomain.com.
Although you can do this, the user is still going to see the warning,
since the SSL handshake must occur before the redirect is sent to the
client.
Your best bet is to get a cert that supports both mydomain.com and
www.mydomain.com, or to set "www" to a separate IP address and use two
certs.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHXHwj9CaO5/Lv0PARApKGAKCDRQ/4Z/TBWw9msi17sRIAFskY6wCffLhJ
JBtVxkHNjdD1KZenkzJFZbM=
=QGW7
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat URL Redirecting
Posted by Ken Bowen <kb...@als.com>.
You can create a rewrite filter using http://tuckey.org/urlrewrite/
RK wrote:
> Hi,
>
> I have my web application running on Tomcat 4.1.31 and SQL Server.
> and I have a security certificate issued for my website for
> http://www.mydomain.com . So if some one types in https://mydomain.com an
> certificate mismatch error is being displayed.
> And I know the reason since the names on the certificate don't match.
> So my question here is there anyway in Tomcat I can redirect all the
> requests coming through https://mydomain.com be forwarded automatically to
> https://www.mydomain.com.
>
> Hope I'm clear, can someone please suggest me an idea to resolve this
> issue.
>
> Thanks
> RK
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org