• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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: 43016
76
  • 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.
 
Get off me! Here, read this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic