You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Oscar Carrillo <to...@daydream.stanford.edu> on 2003/02/11 12:52:23 UTC

RE: automatically redirect http to https in tomcat

I got this working by using separate jkmounts for two different virtual 
hosts. One for http, the other for https.

Then I have a redirect to move to specific page.

Please see my complete description of my setup at
http://daydream.stanford.edu/tomcat/install_web_services.html

Oscar

On Tue, 11 Feb 2003 pqin@shareowner.com wrote:

> Yes, I use struts. It used to automatically redirect http request to https
> with https setup in ssl.conf. After I upgraded to b3, 4.1.18, 2.0.44, http
> is http and https is https.
> 
> Regards,
>  
>  
> PQ
>  
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
> 
> -----Original Message-----
> From: SSchaubach@SelectQuote.com [mailto:SSchaubach@SelectQuote.com] 
> Sent: February 11, 2003 5:13 PM
> To: tomcat-user@jakarta.apache.org
> Subject: RE: automatically redirect http to https in tomcat
> 
> PQ,
> Are you using struts? if so I may be able to help you.
> 
> Best,
> 
> Stephen Schaubach
> 
> 
> -----Original Message-----
> From: pqin@shareowner.com [mailto:pqin@shareowner.com]
> Sent: Tuesday, February 11, 2003 1:12 PM
> To: tomcat-user@jakarta.apache.org
> Subject: automatically redirect http to https in tomcat
> Importance: Low
> 
> 
> Is it possible to automatically redirect any http request to https in an
> Apache + Tomcat environment? For example, If I enter
> http://my.domain.com/mycontext <http://my.domain.com/mycontext> , I would be
> automatically redirected to https://my.domain.com/mycontext?
> 
>  
> 
> Regards,
> 
>  
> 
>  
> 
>  
> 
> PQ
> 
>  
> 
> "This Guy Thinks He Knows Everything"
> 
> "This Guy Thinks He Knows What He Is Doing"
> 
>  
> 
> 


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


RE: automatically redirect http to https in tomcat

Posted by Oscar Carrillo <to...@daydream.stanford.edu>.
One more thing. Make sure NOT to use an include for the mod_jk.conf file.
Then it becomes global and screws you up. At least that's what I figured 
was happening.

Oscar

On Tue, 11 Feb 2003, Oscar Carrillo wrote:

> I got this working by using separate jkmounts for two different virtual 
> hosts. One for http, the other for https.
> 
> Then I have a redirect to move to specific page.
> 
> Please see my complete description of my setup at
> http://daydream.stanford.edu/tomcat/install_web_services.html
> 
> Oscar
> 
> On Tue, 11 Feb 2003 pqin@shareowner.com wrote:
> 
> > Yes, I use struts. It used to automatically redirect http request to https
> > with https setup in ssl.conf. After I upgraded to b3, 4.1.18, 2.0.44, http
> > is http and https is https.
> > 
> > Regards,
> >  
> >  
> > PQ
> >  
> > "This Guy Thinks He Knows Everything"
> > "This Guy Thinks He Knows What He Is Doing"
> > 
> > -----Original Message-----
> > From: SSchaubach@SelectQuote.com [mailto:SSchaubach@SelectQuote.com] 
> > Sent: February 11, 2003 5:13 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: RE: automatically redirect http to https in tomcat
> > 
> > PQ,
> > Are you using struts? if so I may be able to help you.
> > 
> > Best,
> > 
> > Stephen Schaubach
> > 
> > 
> > -----Original Message-----
> > From: pqin@shareowner.com [mailto:pqin@shareowner.com]
> > Sent: Tuesday, February 11, 2003 1:12 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: automatically redirect http to https in tomcat
> > Importance: Low
> > 
> > 
> > Is it possible to automatically redirect any http request to https in an
> > Apache + Tomcat environment? For example, If I enter
> > http://my.domain.com/mycontext <http://my.domain.com/mycontext> , I would be
> > automatically redirected to https://my.domain.com/mycontext?
> > 
> >  
> > 
> > Regards,
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> > PQ
> > 
> >  
> > 
> > "This Guy Thinks He Knows Everything"
> > 
> > "This Guy Thinks He Knows What He Is Doing"
> > 
> >  
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> 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