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@(protected)]
Sent: 09 Декември 2003 г. 00:03
To: tomcat-user@(protected)
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@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)