• Post Reply Bookmark Topic Watch Topic
  • New Topic

redirectPort not working  RSS feed

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 https://site.com, as well as http://site.com and http://site.com:8080. Unfortunately, the latter two do not redirect to the https://site.com addresss like I intend it to. Is there something I'm missing?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!