File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Apache Web Server and Tomcat container. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache Web Server and Tomcat container." Watch "Apache Web Server and Tomcat container." New topic
Author

Apache Web Server and Tomcat container.

Anu Gaur
Greenhorn

Joined: Apr 14, 2009
Posts: 5
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

Joined: Jan 10, 2002
Posts: 61458
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Anu Gaur
Greenhorn

Joined: Apr 14, 2009
Posts: 5
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

Joined: Jan 10, 2002
Posts: 61458
    
  67

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
Marshal

Joined: Mar 22, 2005
Posts: 42379
    
  64
The Tomcat documentation talks about setting up SSL at length: http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html


Ping & DNS - my free Android networking tools app
Anu Gaur
Greenhorn

Joined: Apr 14, 2009
Posts: 5
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.
 
Consider Paul's rocket mass heater.
 
subject: Apache Web Server and Tomcat container.