Re: Redirect HTTP to HTTPS

2005-08-01 Thread Martin Bromley

Just create a filter (mapping it to /* for example so it gets applied to all 
requests), test for a secure connection with request.isSecure(), and if it 
isn't, redirect using response.sendRedirect.

Martin

Faine, Mark wrote:

I know I can redirect HTTP to HTTPS by adding:
 
   user-data-constraint

transport-guarantee
 CONFIDENTIAL
   /transport-guarantee
  /user-data-constraint
 
to my web.xml but the problem is that this does not redirect when someone

just goes to a directory path.  I would like
 
http://servername/
 
to redirect to 
 
https://servername/
 
Thanks,

-Mark

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



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



RE: Redirect HTTP to HTTPS?

2003-06-27 Thread Shapira, Yoav

Howdy,
A webapp must have a WEB-INF folder.  It's a good idea to put a
web.xml file there, even if it only has the webapp / element in it.

You'd like all port 80 requests (both HTTP and HTTPS) routed to port
8443?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Latesha Williams [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 11:26 AM
To: Tomcat Users List
Subject: Redirect HTTP to HTTPS?
Importance: High

How do you redirect HTTP to HTTPS in a Tomcat Standalone configuration
(no
Apache WS)? This configuration serves static web content on port 80 and
JSP/Java Servlets on port 8080.  I would like requests coming in on
port 80
to be routed to HTTPS automatically.  Although the HTTP connectors are
configured to redirect to port 8443, it's not working.  I tried adding
a
security-constraint parameter to $CATALINA_HOME/conf/web.xml and set
the
transport to CONFIDENTIAL, but that didn't work.  Any ideas?

(P.S.)  Could the directory structure for the web app be the cause of
the
problem (i.e. there is no /WEB-INF folder)?

Latesha Williams
Applications Support, Information Technology
American Museum of Natural History
[EMAIL PROTECTED]
(W) 212.769.5947
(C) 917.837.2460



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: redirect http to https???

2003-05-28 Thread Tim Funk
http://tomcatfaq.sourceforge.net/security.html

-Tim

tomcat wrote:
Hi
I implemented SSL . If i brows particular http, it shold redirect to https 
page. How to do this.How to redirect http page to https page??

Regards
Tomcat


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