Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

redirectPort not working

Jaime Acosta
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have tomcat 5.5 set up for my web application with ssl working properly. I would like to redirect all http traffic to https. From my understanding, i should simply have to set the ssl connector to 443 and add 'redirectPort="443"' to the connectors for 80 and 8080 in the server.xml like this:

I also added the following to the end of my web.xml (just before </web-app>), based on information provided in instructions I found online:

As i mentioned above, the ssl is working properly, and I can browse to, as well as and Unfortunately, the latter two do not redirect to the addresss like I intend it to. Is there something I'm missing?

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic