tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Channel <jchann...@gmail.com>
Subject Re: RewriteRule inside JkMount location
Date Fri, 10 Apr 2009 21:24:56 GMT
2009/4/11 Rainer Jung <rainer.jung@kippdata.de>
>
> On 10.04.2009 21:41, J Channel wrote:
> > Hi!Apache 2.2.11, mod_jk 1.2.28
> >
> > httpd.conf:
> > LoadModule jk_module modules/mod_jk.so
> > JkOptions   +ForwardURICompat
> > JkMount /app/* balancer
> > LoadModule rewrite_module modules/mod_rewrite.so
> > DocumentRoot /var/www/public_html
> >
> > .htaccess in docroot:
> > RewriteEngine On
> > RewriteCond %{QUERY_STRING} !dyn\=1
> > RewriteRule ^app/ntd/give.* give.shtml/?%{QUERY_STRING} [L]
> >
> > I cant get worked this conf on apache 2.2.11, URI http://server/app/ntd* pass
> > to tomcat omitting RewriteRule. But its ok on apache1.3.33 + mod_jk1.2.14
> > (even whitout JkOptions +ForwardURICompat, AFAIK its enable by default for
> > mod_jk <= 1.2.22).
>
> It would be nice, if you would tell us, which URL you send, what you
> expect to happen, and what happens instead.
>

Now all URL under app/* just pass out to tomcat.
I expect redirection to give.shtml by RewriteRule as it works in
apache1.3 with same configuration.

> General comments:
>
> - do not use any Forward JkOptions unless you are sure you need them and
> understand the implications. So I suggest you drop the respective line

Ok, drop it, no changes.

> - if you want mod_jk to be called even when mod_rewrite interfered with
> the URL, you need to add the PT flag to the rule (OT=pass through), so
> switch from "[L]", to "[L,PT]".

I have no problem with pass through, i have problem with ignoring my
rewrite directives under /app/*

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


Mime
View raw message