Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirect to https://

 
Marty Finn
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you remember a couple months ago, you guys help me setup an SSL certificate on our web server. Now I need a little more help. All works fine when we type in https://blah.blah.blah but it just comes back with a blank page and says done when we use http://

How can I redirect anyone that uses http:// to automatically change to https://

Tomcat 5.0 (Catalina)

Thanks
Z
[ October 01, 2007: Message edited by: Marty Finn ]
 
Paul Clapham
Sheriff
Pie
Posts: 20769
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use a servlet filter for that. But if you're having a problem with what you did, maybe we should try to fix that up.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can either do this programmatically with a filter, as Paul mentioned, or you can do it declaratively by adding a user-data-constraint entry in your deployment descriptor.

In this example, I've added the CONFIDENTIAL constraint to the tomcat/manager app:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic