aspose file tools*
The moose likes Tomcat and the fly likes Apache HTTP server dynamic files rendering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache HTTP server dynamic files rendering" Watch "Apache HTTP server dynamic files rendering" New topic
Author

Apache HTTP server dynamic files rendering

Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 327
While apache servers main goal is to serve static files but it also serve those php and other dynamic stuff too. So what are the add ons or is it in build in apache, which makes apache to serve those dynamic content?
Also isnt there anything inside apache as a container?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
That's done via modules: mod_php, mod_perl etc. The connector for Tomcat is called mod_jk. See https://modules.apache.org/
Karthik Shiraly
Ranch Hand

Joined: Apr 04, 2009
Posts: 532
    
    7
apache servers main goal is to serve static files

No PHP developer would agree with you .
It's true that apache httpd is often used to offload static content serving off Tomcat for java web apps. But it's more commonly used as a standalone web server for PHP web applications.
However, PHP is an optional Apache module. In fact, every functionality in Apache httpd is a "module", except for the raw html/js/image file serving. You can run Apache httpd without PHP if you want, and make it serve just static content like HTML/js/images.
Another common module that allows httpd to serve dynamic content is the CGI module, usually used for perl based web apps.

isnt there anything inside apache as a container?

Do you mean a servlet container? No, there isn't.
Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 327
Tim Moores wrote:That's done via modules


Okie. so all those are modules know. which means any time we can disable those and just use apache as a static file rendering server.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

Harshana Dias wrote:
Tim Moores wrote:That's done via modules


Okie. so all those are modules know. which means any time we can disable those and just use apache as a static file rendering server.


In most cases, it's more like "just don't install the modules to begin with."


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Apache HTTP server dynamic files rendering