File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Has the Tomcat to Apache HTTPD connection (mod-JK) gotten any better Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Has the Tomcat to Apache HTTPD connection (mod-JK) gotten any better" Watch "Has the Tomcat to Apache HTTPD connection (mod-JK) gotten any better" New topic
Author

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

Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4658
    
    5

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

Joined: Jun 25, 2001
Posts: 16067
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
tanuj khare
author
Ranch Hand

Joined: May 02, 2012
Posts: 37

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

Regards, Tanuj Khare
author of Apache Tomcat 7 Essentials
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Has the Tomcat to Apache HTTPD connection (mod-JK) gotten any better