• 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:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Disabling plain http for a webapp

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have a Tomcat server serving a couple of webapps, where noone is allowed to use http. So we switched of the http part completely and are only using the https part of tomcat.

Now we hava a webapp that has to be run with plain http, and I wonder if there is a way of making just one webapp listen to http without changing any configuration of the others. The bottom line is that we have an infrastructure for deploying webapps and I don't want to change anything concerning the deployment and configuration of other webapps. What I have to my disposal is the configuration of Tomcat itself and the affected webapp that has to run through http.

Is it possible to turn on http just for one webapp or is the only sollution to run a second instanse of a Tomcatserver that listens to http?
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If Tomcat is not listening to HTTP, then there's no way to use HTTP to get through to an app running in Tomcat.

You don't need a second Tomcat instance, though. You can define one Service that only has an HTTP Connector, and one Service that only has an HTTPS Connector. See http://tomcat.apache.org/tomcat-6.0-doc/config/index.html for details.
 
Iasion Papadopulus
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the hint. Seems like the Service tag is what I was looking for!
 
Did you miss me? Did you miss this tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic