You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gerard Pelka <ge...@uni-dortmund.de> on 2006/03/29 22:49:59 UTC

Apache2 -> mod_jk2 -> Tomcat4.1 : 404 Error if host not defined in server.xml

Hello,

I have a Apache running with a lot virtual hosts. Now I installed Tomcat 
4.1 and use mod_jk2 to send .jsp to the Tomcat Server (ajp13). But 
Tomcat needs the real path to the .jsp-file (defined in server.xml) or 
it cause a 404 Error ?!?! Is this normal?
Do I have really define all the virtual hosts in the server.xml to use 
.jsps in on all hosts? And what happen, if the Tomcat is not the same 
server like the Apache? I thought the Apache only sends the jps to the 
Tomcat and reply the output.

Thx for Help
Gerard



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


Re: Apache2 -> mod_jk2 -> Tomcat4.1 : 404 Error if host not defined in server.xml

Posted by David Smith <dn...@cornell.edu>.
I think you have this turned around.  jsp files are not "sent" to tomcat
for processing.  Think of the relationship between Apache and Tomcat
more as a proxy environment.

Tomcat has a set of contexts.  Each context has a set of jsps, servlets,
and resources that function to gether as an application.  What really
happens is apache passes requests from the client back to tomcat, tomcat
produces a response from it's servlets and jsps and passes that response
back to the client through apache.

--David

Gerard Pelka wrote:

> Hello,
>
> I have a Apache running with a lot virtual hosts. Now I installed
> Tomcat 4.1 and use mod_jk2 to send .jsp to the Tomcat Server (ajp13).
> But Tomcat needs the real path to the .jsp-file (defined in
> server.xml) or it cause a 404 Error ?!?! Is this normal?
> Do I have really define all the virtual hosts in the server.xml to use
> .jsps in on all hosts? And what happen, if the Tomcat is not the same
> server like the Apache? I thought the Apache only sends the jps to the
> Tomcat and reply the output.
>
> Thx for Help
> Gerard
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

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