You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mariano <ml...@sescam.org> on 2004/06/01 09:22:04 UTC

RE: combined http and https

Hi José Manuel, if you have already configured your tomcat to work with SSL
you can filter all pages you want with the following lines in web.xml
context file:

<security-constraint>
    <web-resource-collection>
      <web-resource-name>SSL Pages</web-resource-name>
      <url-pattern>/Comun/MyPage.jsp</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
      <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>

You can use wildcards in <url-pattern> like '*'...

But i have a problem too, when i like to pass from http to https this work
fines, but from https to http i don't have a definitely solution yet.

Regards

Mariano López

-----Mensaje original-----
De: José Manuel Prada Sierra [mailto:petinboy@hotmail.com]
Enviado el: lunes, 31 de mayo de 2004 12:57
Para: tomcat-user@jakarta.apache.org
Asunto: combined http and https



Hi. I have an application that it was build using  tdk (turbine development
kit) and postgresql.
I have configured tomcat with http 8080 and https 8443 but i only use http
or https and i do not know how to combined both protocols. In my application
i have a section that is accesible typing login and password, but i need
that when an user link to this section, to activate the protocol https.
could somebody tell me the way to do it? Thank you.
Sorry for my english. I am a spanish.

_________________________________________________________________
Reserva desde ahora tus vacaciones en MSN Viajes. Más cómodo, más barato y
más opciones. http://www.msn.es/Viajes/


---------------------------------------------------------------------
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