tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From noel.jean-bapti...@courrier.uqam.ca
Subject Re: How to redirect to https with Tomcat Stand-alone
Date Thu, 01 May 2003 20:49:50 GMT
yes of course, 
In your web.xml file add:
  <security-constraint>
     <web-resource-collection>
        <web-resource-name>Protected Context</web-resource-name>
          <url-pattern>/*</url-pattern>
      </web-resource-collection>
      <!-- auth-constraint goes here if you requre authentication -->
      <user-data-constraint>
         <transport-guarantee>CONFIDENTIAL</transport-guarantee>
      </user-data-constraint>
   </security-constraint>

With this, Tomcat will attempt to redirect any http request to the 
context
to the https Connector, and will never serve it under http.

Jean-Baptiste Noël
France

---- Messages d´origine ----
De: "Palacios, Gethsemani" <Gethsemani.Palacios@mail.va.gov>
Date: jeudi 1 mai  2003 16:10
Objet: How to redirect to https with Tomcat Stand-alone

> 
> Does anybody know if it is possible to have Tomcat redirect from a 
> http page
> to https page without having to add or editing the existing http 
> referencelinks.
> 
> Thank you in advance.
> 
> 
> 
> "GETSA"
> Gethsemani Palacios
> Application Software IT Specialist
> VA Austin Automation Center
> Work:  512-326-6708
> Cell:  512-762-7295
> 
> 
> -------------------------------------------------------------------
> --
> 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


Mime
View raw message