Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Web Server and Tomcat container.

 
Anu Gaur
Greenhorn
Posts: 5
  • 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 --http://www.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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64712
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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: 5
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64712
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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).
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • 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: 5
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic