This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • 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
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Apache Web Server and Tomcat container.

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Apache is a web server and tomcat is a container which supports servlets,jsp etc. but also that tomcat can be used as standalone web-server than my question is why don't we use tomcat as standalone server in production environment?


i got the answer on this link --https://coderanch.com/t/81462/Tomcat/Standalone-Tomcat
As far as i understood the benefit is speed for static pages.

My next question is if we want to make some pages in our application to be secure means https pages, then how should it be done?

On the apache server level or on the application level through acegi etc?We want to make certain pages of our application to be https not all the pages.
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

why don't we use tomcat as standalone server in production environment?


We do.

As far as i understood the benefit is speed for static pages.


That hasn't been true for many many years now. Tomcat's speed is fine for static pages.
 
Anu Gaur
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply....

but in the applications where we have some modules in java and some say in some other language(eg PHP) then we will have to use Apache as web server and tomcat as container.whats say?

and please reply to 2nd question as well in first post.
 
Bear Bibeault
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's not a good idea to put more than one question in a single post. I have no experience with setting up SSL.

If you need PHP, then obviously, you'll either need something other than Tomcat, or a plugin that runs a PHP processor inside Tomcat (google for that).
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Tomcat documentation talks about setting up SSL at length: http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
 
Anu Gaur
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I didn't mean how to set up SSL configuration for Tomcat.
My question is which approach is preferable.
For eg we have have Apache server and Tomcat container.
then httpd should be used or Tomcat should be configured for SSL.Hope i am able to clear my point.
 
Politics n. Poly "many" + ticks "blood sucking insects". 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