tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [OT] Using httpd's mod_rewrite with mod_jk
Date Fri, 02 Jul 2010 20:02:40 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rainer,

On 7/2/2010 10:13 AM, Rainer Jung wrote:
> On 02.07.2010 02:37, Christopher Schultz wrote:
>>
>> Okay, I changed my RewriteRule to this:
>>
>>          RewriteRule .* /bad-browser.shtml [L,E=no-jk]
> 
> OK, I did a little test:
> 
> RewriteRule .* /bad-browser.shtml [L,E=no-jk:1]
> 
> should work. A quick glance at mod_rewrite's code indicates it drops E=
> rules when no value is present.

You know, I should have thought of that. My other experiences with
environment variables and non-env variables with Apache was that you can
set a variable to nothing but it is still considered "set" (or
"defined", if you prefer). In this case, it is not.

I tried your incantation above, and it works. It does everything I want
except to return a 403 error, which I can probably add with [F] in
addition. In my case, I want other sections of the conf file to allow
arbitrary 403 handling, and I don't want to create

  RewriteRule /403.html - [L]

rules for all of them. So, I'll live with the 200 response.

Thanks again,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwuReAACgkQ9CaO5/Lv0PDXvQCeJHWjCq9tD3QARj1U8/1+pTaQ
ZZ8An20XNqyMJ3dj18ji2Yh929cOQr0G
=s29K
-----END PGP SIGNATURE-----

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


Mime
View raw message