• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using https with specific application in tomcat  RSS feed

 
yash wardhan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to use https first time. I had gone through some tutorials, but can't find how to do following scenario.

I have few applications in my webapps folder of tomcat, out of which I want to use https for one application(say TestSSL) and other applications should use normal http.
I tried it and it's working, but at the same time the application(TsetSSL) is working with http also which I don't want. Is there a way to configure it somewhere that which application should which protocol, if not can anyone tell which is the best way to do this.


Thanks
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can require HTTPS to be used for specific web apps; that's set up in that web app's web.xml file. Search the servlet specification for "transport-guarantee".

Alternatively, you can check whether a request was made using HTTPS (using HttpServletRequest.isSecure), and if it was not, perform a client-side redirect to the HTTPS address.
 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
take a look at this. This might help you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!