aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "TOMCAT/APACHE integration" Watch "TOMCAT/APACHE integration" New topic
Author

TOMCAT/APACHE integration

joe miao
Greenhorn

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!
joe
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

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 jakarta.apache.org/tomcat.


Customer surveys are for companies who didn't pay proper attention to begin with.
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: http://aspose.com/file-tools
 
subject: TOMCAT/APACHE integration
 
Similar Threads
using tomcat with apache2
Apache Tomcat Integration
Head First Servlets: Beer Problem
Tomcat Doubt
Apache web server