You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by michael thomas <co...@yahoo.com> on 2006/03/29 04:32:14 UTC

How to have mod_jk NOT forward certain jsp's?

Hello,

Is there a way to get mod_jk not to forward certain
jsp's?  Specifically, we are using cvsweb on Apache,
and it creates URL's like the following:

http://www.site.com/cgi-bin/cvsweb.cgi/source/jsp/backoffice.jsp

Since it ends in .jsp, JkMount is forwarding it:
JkMount /*.jsp app01

However, we want anything that is in /cgi-bin to not
go to Tomcat.

I figured we needed some sort of rewriting rule, like:
RewriteRule ^/cgi-bin/(.*) /cgi-bin/$1 [PT]

But that didn't seem to work.  (We do know rewriting
is enabled, as we use it for other things.)

Thanks,
Michael


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: How to have mod_jk NOT forward certain jsp's?

Posted by Molot <mo...@gmail.com>.
2006/3/29, Long <lo...@rogers.com>:
> ----- Original Message -----
> From: "michael thomas" <co...@yahoo.com>
> > Hello,
> >
> > Is there a way to get mod_jk not to forward certain
> > jsp's?  Specifically, we are using cvsweb on Apache,
> > and it creates URL's like the following:
> >
> > http://www.site.com/cgi-bin/cvsweb.cgi/source/jsp/backoffice.jsp
> >
> > Since it ends in .jsp, JkMount is forwarding it:
> > JkMount /*.jsp app01
> >
> > However, we want anything that is in /cgi-bin to not
> > go to Tomcat.
> >
> How about
>
> JkMount /path/to/tomcat/context/*.jsp app01
>
> Long
> www.edgesoft.ca
>

>From docs:
"JkUnmount directive acts as an opposite to JkMount"
It doesn't work for you?

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


Re: How to have mod_jk NOT forward certain jsp's?

Posted by Long <lo...@rogers.com>.
----- Original Message ----- 
From: "michael thomas" <co...@yahoo.com>
> Hello,
> 
> Is there a way to get mod_jk not to forward certain
> jsp's?  Specifically, we are using cvsweb on Apache,
> and it creates URL's like the following:
> 
> http://www.site.com/cgi-bin/cvsweb.cgi/source/jsp/backoffice.jsp
> 
> Since it ends in .jsp, JkMount is forwarding it:
> JkMount /*.jsp app01
> 
> However, we want anything that is in /cgi-bin to not
> go to Tomcat.
>
How about

JkMount /path/to/tomcat/context/*.jsp app01

Long
www.edgesoft.ca


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