httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: cvs commit: httpd-docs-1.3/htdocs/manual/misc rewriteguide.html
Date Thu, 27 Sep 2001 17:31:24 GMT

In article <20010927160843.49949.qmail@icarus.apache.org> you wrote:

>  IMO, the '=' must not be there. Ralf?

>  -RewriteCond   ${hosts-deny:%{REMOTE_HOST}|NOT-FOUND} !=NOT-FOUND [OR]
>  -RewriteCond   ${hosts-deny:%{REMOTE_ADDR}|NOT-FOUND} !=NOT-FOUND
>  +RewriteCond   ${hosts-deny:%{REMOTE_HOST}|NOT-FOUND} !NOT-FOUND [OR]
>  +RewriteCond   ${hosts-deny:%{REMOTE_ADDR}|NOT-FOUND} !NOT-FOUND
>   RewriteRule   ^/.*  -  [F]

"!FOO" is just a regex-match for "FOO" and the result is negated. "=FOO"
is a plain text match for FOO and "!=FOO" is a plain text match for FOO
and the result is negated. So both are equal (ok, this is true only if
you really would write "!^FOO$", but don't let us be pedantic here), but
the "!=FOO" is faster. So I would keep "!=FOO" here.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

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


Mime
View raw message