Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Has the Tomcat to Apache HTTPD connection (mod-JK) gotten any better

 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been using Tomcat as my servlet engine since the early days of this century.

One thing that I've never been able to get setup right is mod-jk so I can have normal Apache HTTPD handle HTML and
dispatch off to Tomcat for my servlets.

I've always had to have some sysadmin set it up. It seems to only take them a few minutes. But when I read the documentation, I get lost. It seems to
be full of self referential stuff. Its worse than trying to learn how to use Unix commands from the man-pages.

Has the setup gotten better? Are there better documentation and tutorials so folks who are not super sysadmins can be successful?

Thanks
Pat
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, mod_jk is no longer the recommended connection to use. I've been using mod_proxy for some time.

Of course, "recommended" isn't necessarily better. To even use mod_proxy for this purpose, you have to have a fairly modern Apache server. You aren't offered all the arcane config options that mod_jk affords (whether you need them anymore or not, I haven't yet determined). I have no authoritative stats on relative performance.

For my needs, mod_proxy works well. It's a fairly simple config on the Apache side and I've never had to do anything to configure Tomcat for it. The only real issue is that you should take care to avoid setting up a reverse proxy that can be exploited as a spam relay. My servers get dozens of attempts of this exploit every day.
 
tanuj khare
author
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Yes the documentation is improved a lot; I have seen this problem with lot many persons, In apache tomcat 7 essential, I have discussed how to setup apache –tomcat integration using mod_jk and mod_proxy step by step with each screen shot, try the steps, your problem will get resolved
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic