tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chauhan, Anand" <Anand.Chau...@iCanSP.com>
Subject RE: starting in a default servlet
Date Tue, 12 Jun 2001 17:23:30 GMT
Hi Pedro,

Did you try putting in:
JkMount /myapp/*  ajp13

It works for me ! 

Good Luck,
Anand Chauhan


-----Original Message-----
From: Pedro Salazar [mailto:pedro-b-salazar@ptinovacao.pt]
Sent: Tuesday, June 12, 2001 1:13 PM
To: tomcat-user@jakarta.apache.org
Subject: starting in a default servlet


Greetings,

I configured tomcat to when I start my application to run a default 
servlet [url-pattern is /]:

in web.xml:
"
<servlet-mapping>
   <servlet-name>
     servlet1
   </servlet-name>
   <url-pattern>
     /
   </url-pattern>
</servlet-mapping>
"

When I go to http://myserver:8080/myapp/ my servlet starts as expected.
Now I would like to do the samething but with apache (without the 8080 
port).
But, apache assumes that the root application is only for him to handle, 
and only /myapp/servlet/* or /myapp/*.jsp is for TOMCAT to handle 
[JkMount]. What is happening is that apache shows the root of myapp!!

JkMount:
"
JkMount /myapp/servlet/* ajp13
JkMount /myapp/*.jsp ajp13
"

What should I do for when I request http:/myserver/myapp/ apache 
redirect the request to tomcat?

thx
--
<psalazar/>

Mime
View raw message