RE: Redirect to https://

2005-04-14 Thread Phillip Qin
Can you do it in apache httpd.conf?

RewriteRule ^/host/application(.*) https://host/application [R]

-Original Message-
From: Darryl Wilburn [mailto:[EMAIL PROTECTED] 
Sent: April 14, 2005 4:00 PM
To: tomcat-user@jakarta.apache.org
Subject: Redirect to https://


Where would I configure a context to automatically
redirect to https?  So when a user types http://host/application, it would
automatically redirect them to https://host/application where a index.jsp
may be a login form that I'd like to have the username and password
encrypted.  I assume it goes in web.xml, but is it in the web.xml of the
context itself?  What is the format of the entry?

Thanks in advance.
Darryl




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:425ecbb615383665362806!


RE: Redirect to https://

2005-04-14 Thread Lorenzo Jiménez
I have done that yesterday and it is pretty simple.

Just look this web.xml:

?xml version=1.0 encoding=UTF-8?

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
session-config
session-timeout
30
/session-timeout
/session-config

!-- Automatic redirection to SSL 
Remember to have SSL active
 --

security-constraint
web-resource-collection
web-resource-nameAutomatic SLL Forwarding/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

welcome-file-list
welcome-file
index.jsp
/welcome-file
welcome-file
index.html
/welcome-file
welcome-file
index.htm
/welcome-file
/welcome-file-list
/web-app


Lorenzo


-Original Message-
From: Darryl Wilburn [mailto:[EMAIL PROTECTED] 
Sent: Jueves, 14 de Abril de 2005 02:00 p.m.
To: tomcat-user@jakarta.apache.org
Subject: Redirect to https://

Where would I configure a context to automatically
redirect to https?  So when a user types
http://host/application, it would automatically
redirect them to https://host/application where a
index.jsp may be a login form that I'd like to have
the username and password encrypted.  I assume it goes
in web.xml, but is it in the web.xml of the context
itself?  What is the format of the entry?

Thanks in advance.
Darryl




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 
http://www.nacion.com/disclaimer/index_en2.htm

-



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Redirect to https://

2005-04-14 Thread Darryl Wilburn
Not using Apache as a front end.  Straight Tomcat
5.5.7 with Coyote HTTP.

Darryl



__ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]