• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic