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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache/tomcat collaboration

Status
Not open for further replies.

knowsless

Technical User
Mar 7, 2002
1
DE
hi all,
this is my fist thread i ever did, can anybody help a beginner.
Problem is to configurate apache 1.3 to collaborate with tomcat 4.0.3.

apache functions well
tomcat too

the problem is:
the linux server has the ip 10.10.10.1 which is not inscribed in any dns server (so lookup from outside is not possible)

to enable apache to work with tomcat i had to add a virtual host:

<VirtualHost 10.10.10.1>
ServerName localhost
DocumentRoot /usr/local/jakarta.../webapps
WebAppConnection connection warp localhost:8008
WebAppDeploy examples connection /examples
</VirtualHost>

and in /usr/local/jakarta..../conf/server.xml the following server name &quot;localhost&quot;

but it does'nt work and in the err_log of apache the file
/usr/local/apache/htdocs/examples does'nt exist

what should i do?
 
Make sure that you're including Tomcat's mod_jk.conf-auto (I think) in your Apache config. I haven't used Tomcat 4, but there's a startup switch in v3.3 which will create this file. In it are the instructions telling Apache to have Tomcat handle the contexts that it finds, like /examples, /servlet, etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top