File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes TOMCAT/APACHE integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "TOMCAT/APACHE integration" Watch "TOMCAT/APACHE integration" New topic

TOMCAT/APACHE integration

joe miao

Joined: Nov 18, 2002
Posts: 1
I'd appreciate that any of you could help me on this.
I've just downloaded TOMCAT 4.1.12 and Apache HTTP server and they're running fine separately ( http://localhost and http://localhost:80 go to Apache and http://localhost:8080 goes to Tomcat)
My question is that how do I make them running together? For example, sending static request
to Apache and dynamic one to TOMCAT.
Do I need to do configure it manually (using mod_webapp connector???) or has it already been set up by TOMCAT?
Thanks again in advance!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

You set up a pipeline from Apache to Tomcat using a connector such as mod_jk, mod_webapp or the new coyote connector.
Most of the info goes in the apache config file so that Apache knows what URIs to decode into tomcat requests and how to transmit them to Tomcat. The Tomcat server may need some worker definitions and a server.xml entry.
Check out the version of the "Tomcat Apache HOWTO" in the documentation for the version of Tomcat you're using at

An IDE is no substitute for an Intelligent Developer.
David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
I've been trying to get Apache to work with Tomcat for months, scoured the web, even won a book here, and can't get it work.
I've even rebuilt a brand new box, run a clean install of both Apache and Tomcat, copy-pasted from someone who swore their config worked, and it still didn't work.
Not even the basic "examples" came up.
TO make a liar out of me, someone is gonna have to physically show me a box where it's running.
I finally gave up and installed Resin.
Worked first time through, has an auto confi. app for apache, IIS, other.
Also, unless you are trying to run other things (CGI, PHP, etc.) or you need the speed for rendering static that apache provides, why not just run Tomcat standalone?
I agree. Here's the link:
subject: TOMCAT/APACHE integration
It's not a secret anymore!