Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Apache sites, recommend the integration of httpd and tomcat(mod_jk). The first for static and the second for dynamic content. What about the case that the entire page is dynamic. Does it still make sense to integrate both servers? What would be the advantages?

share|improve this question
up vote 0 down vote accepted
  1. It allows you to use the other features of HTTPd (e.g. rewriting via mod_rewrite).
  2. It allows you to run Tomcat as non-root, preventing privilege violations.
share|improve this answer
There is no requirement to run Tomcat as root, so #2 is not really a good reason to use Apache httpd. – Christopher Schultz May 24 '12 at 16:27
Other good reasons to use httpd/mod_jk: 1. load-balancing across multiple Tomcat backends 2. deploying webapps to different Tomcats/JVMs and still accessing them from the same port 3. offering a heterogeneous service environment: Tomcat for some webapps, PHP/Perl/CGI for others, since httpd is better for those – Christopher Schultz May 24 '12 at 16:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.