tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Altankov Peter" <PAltan...@globul.bg>
Subject RE: How to configure the default application in apache to point to tomcat??
Date Tue, 09 Dec 2003 13:15:23 GMT
The reason for 404 is that your application context is mapped in tomcat container under /myapp.
Try this:

   JkMount /* your_worker_definition

In apache httpd.conf, and:

<Context debug="0"
         docBase="/absolute/path/to/myapp"	<- (or relative to CATALINA_HOME ofcorse)
         path="">....					<- this tells comcat that requests for / should be mapped
to myapp

I hope this hints help.

-----Original Message-----
From: Natarajan Arun [mailto:natarajan_arun@bah.com] 
Sent: 09 Декември 2003 г. 00:03
To: tomcat-user@jakarta.apache.org
Subject: How to configure the default application in apache to point to tomcat??


Hi,
I have integrated tomcat and apache. Now when I type http://localhost/myapp i get the page
from the tomcat myapp application. However now, I want http://localhost to point to this application,
since this is my default application. What configuration would I have to change ?? I tried
using
+ Redirect / http://localhost/myapp in the apache httpd.conf but that 
+ did
not work.
+ Changing the alias in mod_jk.conf to / instead of /myapp also did not
help. It lists the directory but then invoking any pages results in a file not found because
it is probably looking in apcahe's document root.

Thanks for any help.
Arun N.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message