Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Apache HTTP server dynamic files rendering

 
Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Saloon Keeper
Posts: 7236
169
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's done via modules: mod_php, mod_perl etc. The connector for Tomcat is called mod_jk. See https://modules.apache.org/
 
Bartender
Posts: 1210
25
Android Python PHP C++ Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 352
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Saloon Keeper
Posts: 24890
174
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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."
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic