Hi Tomcat folks,

I'm trying to put my servlet under http://www.myserver.com/myservlet
(instead
of whole www.myserv.com/myapp/servlet/myservlet line) by using Apache2 &
mod_jk2. In general, I need a more simple URL, or noone will remember to
visit my site ;)

Everything went fine: I get rid of the "/servlet/" part by using
<servlet-mapping> directive in Tomcat' web.xml and changed the context path
of the application to "/". Next, <Location />JkUriSet worker apj13<Location>
in Apache's httpd.conf and everything goes... With one exception: when I
access http://www.myserver.com/images then Tomcat complains about
"context-path not defined". My intention, however, was to to leave static
data handling (images, css, etc) to Apache. The problem is that mod_jk2's
"JkUriSet"
takes all the directories bellow the <Location> directive and does not allow
to define exceptions (as
in the case I want some subdirectory content to be served by Apache, not
Tomcat).

Any advices will be warmly welcomed.
Thnx,
Andris Spruds













--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to