tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ratnadeep Bhattacharjee <Ratnadeep.Bhattachar...@sun.com>
Subject automatic redirection to HTTPS
Date Tue, 29 Jan 2002 20:33:47 GMT
Hello all,

I am having some problems getting automatic redirection to HTTPS working. What I 
want do is as follows:

If the user types a URL http://host:port/myapp it should be redirected to 
https://host:secure_port/myapp. If you had encountered this problem and found a 
solution could you please share it with me. 

I followed the instructions in servlet 2.3 spec and Tomcat and added the 
security-constraint tag but it did not work for me. Should the web-resource-name 
tag match a real web resource - or can it be any arbitrary name?
 
  <security-constraint>
   <web-resource-collection>
     <web-resource-name>logon</web-resource-name>
        <url-pattern>/console/*</url-pattern>
        <http-method>GET</http-method>
        <http-method>POST</http-method>
   </web-resource-collection>
   <user-data-constraint>
     <transport-guarantee>CONFIDENTIAL</transport-guarantee>
   </user-data-constraint>
  </security-constraint>

I am running Tomcat 4.0.1. 

Thanks.

-Ratnadeep.



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message