On 04.07.2010 04:16, Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rainer,

On 7/3/2010 1:54 PM, Rainer Jung wrote:
On 03.07.2010 14:08, Rainer Jung wrote:
On 02.07.2010 22:02, Christopher Schultz wrote:
-----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.

Right, I'd say it's a buglet in mod_rewrite. Maybe something I can
improve for httpd trunk ... (I need to check whether it still behaves
the same there).

I made the VAL argument in ENV=VAR:VAL optional for httpd trunk:

http://svn.apache.org/viewvc?rev=960233&view=rev

and proposed it for backport to httpd 2.2.x. It's a trivial change, no
risk, and a nice shortcut for configuration. Otherwise the module should
at least complain about an invalid flag syntax.

Nice cross project interaction :)

Always glad to help, even on trivial matters. Thanks for the patch.

And as of revision 964741 it is part of 2.2.x. Will be released with 2.2.16.

Regards,

Rainer

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

Reply via email to