httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] mod_rewrite and network addresses?
Date Mon, 25 Jul 2005 18:02:55 GMT
On 7/25/05, Dick Davies <rasputnik@hellooperator.net> wrote:
> > RewriteCond %{REMOTE_ADDR} !^10\.0\.11[2-9]\.*
> > RewriteCond %{REMOTE_ADDR} !^10\.0\.12[0-7]\.*
> > which I believe should get the intention of your first line. (Note
> > also the correct regex escaping of the '.'.)
> 
> Thanks Joshua, just needed some confirmation I wasn't missing anything obvious
> (the escaping in my post was adhoc, was'nt sure if mod_rewrite needs .*
> or * to match 'anything').

mod_rewrite uses regular expressions, so ".*" is needed to match
anything (which means I missed a dot in my above example: it needs to
end with \..*).

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message