Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Apache Web Server and Tomcat container.

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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.
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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: 43016
76
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Something about .... going for a swim. With this tiny ad ...
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic