Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with integrating Apache and Tomcat 4

Status
Not open for further replies.

tim273

Programmer
Aug 29, 2001
9
US
I have Apache 1.3.20 and I just downloaded Tomcat 4.0.1 and mod_webapp. I followed the instructions of installing mod_webapp and tried setting up a connection with tomcat, but I keep getting an "Invalid virtual host" error. Here's the code I used:

WebAppDeploy VideoStore tomcatConnnnection /VideoStore

VideoStore is a folder in my ROOT directory in tocmat. Any ideas? Thanks!
 
Hi,

It just sounds like a syntax problem in a virtualhost container in your httpd.conf.

Did you add the following to httpd.conf :

LoadModule webapp_module [path to mod_webapp.so]
AddModule mod_webapp.c

Also do you get any syntax errors from testing the changed httpd.conf :

/usr/local/apache/bin/httpd -t


The latest install.txt from cvs can be obtained here --> .

Hope this helps
 
Actually I did add the LoadModule and AddModule commands to httpd.conf. I downloaded the mod_webapp, and the instructions you linked to came with mod_webapp. I have Tomcat 4 in /usr/local/ directory.

There are a couple questions that I have:

Does it matter where in httpd.conf that I put the WebAppDeploy command? And does it matter which directory I have Tomcat in? I was wondering if this was the problem.

I will try testing the httpd and see if that makes a difference. Thank you for your help!

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top