Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.