• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Using https with specific application in tomcat

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
take a look at this. This might help you.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic