Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. 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

I am having to use Java due to needing one backend library.

Is it still considered good practice to set up Apache as the front-facing server and have Tomcat behind it? I am spending a lot of time configuring mod_jk.

Also, what do people usually use for CMS or web-page templating in such a setup? I wanted to use Drupal, but was advised that since I'd have to set up mod_jk and jump through extra hoops configuring it, it might not be a good approach.

Could you guys please suggest some common considerations or good approaches in this sort of a situation?

Thanks, Alex

share|improve this question
You might want to read about Tomcat's performance here – Mahmoud Hossam Apr 19 '11 at 19:56

In the old days this was considered good practice, as TC was not as fast as httpd (especially for serving static content).

Today TC is as fast, so the reason would be rather to use httpd with mod_jk or mod_cluster (sort of a mod_jk++ with some auto-config features) for load balancing or fault tolerance.

share|improve this answer
Yeah I have been dealing with mod_jk but it is a pain to configure. Is mod_cluster related to mod_jk or something separate? The reason I am asking is I am trying to figure out a sound approach of managing the UI layer in my Java application. – Genadinik Apr 19 '11 at 19:43
Mod_cluster is separate to work against some of the shortcomings of mod_jk - I've added a link to my answer. – Heiko Rupp Apr 19 '11 at 19:52

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.