You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sanjeev Srivastava <sa...@yahoo.co.uk> on 2005/03/09 00:27:54 UTC

Redirect from http:// to https://

Hi All!,
         Can anone tell me how can I redirect http://
to https:// . I want as soon as the user type
http://abc.com it will go to https://abc.com

(SSL Config).

Please help..

Regards,
Sanjeev

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


Re: Redirect from http:// to https://

Posted by Peter Johnson <pe...@wizardslair.net>.
Or write a valve/filter to do the same thing

PJ

Antony Paul wrote:

>You use Tomcat standalone or along with Apache. 
>In Tomcat stand alone you can 
>1, In index.jsp or whatever be the welcome page check
>response.isSecure() then redirect.
>2. There is an option in web.xml in security element
>transport-guarantee which can be specified for certain resources. On
>accessing these resources it will automatically redirect to the https.
>You need to properly configure redirectport in Connector element in
>server.xml for this to work.
>
>    In Apache use mod_rewrite.
>
>
>On Tue, 8 Mar 2005 23:27:54 +0000 (GMT), Sanjeev Srivastava
><sa...@yahoo.co.uk> wrote:
>  
>
>>Hi All!,
>>         Can anone tell me how can I redirect http://
>>to https:// . I want as soon as the user type
>>http://abc.com it will go to https://abc.com
>>
>>(SSL Config).
>>
>>Please help..
>>
>>Regards,
>>Sanjeev
>>
>>Send instant messages to your online friends http://uk.messenger.yahoo.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>    
>>
>
>
>  
>

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


Re: Redirect from http:// to https://

Posted by Antony Paul <an...@gmail.com>.
You use Tomcat standalone or along with Apache. 
In Tomcat stand alone you can 
1, In index.jsp or whatever be the welcome page check
response.isSecure() then redirect.
2. There is an option in web.xml in security element
transport-guarantee which can be specified for certain resources. On
accessing these resources it will automatically redirect to the https.
You need to properly configure redirectport in Connector element in
server.xml for this to work.

    In Apache use mod_rewrite.


On Tue, 8 Mar 2005 23:27:54 +0000 (GMT), Sanjeev Srivastava
<sa...@yahoo.co.uk> wrote:
> Hi All!,
>          Can anone tell me how can I redirect http://
> to https:// . I want as soon as the user type
> http://abc.com it will go to https://abc.com
> 
> (SSL Config).
> 
> Please help..
> 
> Regards,
> Sanjeev
> 
> Send instant messages to your online friends http://uk.messenger.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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