On Tue, 20 Mar 2001, Arif Tayebali wrote:

> I'm facing the same problem...haven't figured it out and dont think anyone
> else has either. This topic is quite an old topic, I can only wonder why no
> one has addressed it.
> 
> -----Original Message-----
> From: Yang,Chun [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 20, 2001 11:20 AM
> To: '[EMAIL PROTECTED]'
> Subject: servlet prefix problem
> 
> 
> Hello all, I don't seem to be able to change the prefix for accessing
> servlets. The default servlet prefix is "/servlet/" and according to the
> instructions/coments in server.xml, this prefix can be adjusted. So I tried
> changing the following lines in server.xml
> 
> <RequestInterceptor 
>             className="org.apache.tomcat.request.InvokerInterceptor" 
>             debug="0" prefix="/foo/bar/servlets/" />
> 
> I made sure there is a slash at the beginning and the end of the prefix.
> Somehow it doesn't work. When I looked at the generated mod_jk_conf-auto
> file, I noticed the JkMount directive is still directing everything in
> /servlet/* to ajp12. I would assume by changing the prefix in server.xml,
> there would be a JkMount directive for /foo/bar/servlets/* to ajp12.
> 
> What have I done wrong and what am I missing here ?
> 

It's a bug in the code that generates mod_jk_conf-auto, which is currently
assuming the prefix never changes.  Could you please report this to the
bug tracking system so that it gets addressed:

        http://nagoya.apache.org/bugzilla/

As a work around, I would suggest not trying to use mod_jk_conf-auto
directly -- just use it as a model for the commands that you actually
include into httpd.conf.  Then, you can make the corresponding changes by
hand.

> Thanks.
> 

Craig McClanahan


Reply via email to