httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <rbo...@rcbowen.com>
Subject Re: [users@httpd] specifying a IP range in mod_rewrite
Date Fri, 20 Aug 2004 10:38:19 GMT
On Thu, 19 Aug 2004 Saqib.N.Ali@seagate.com wrote:

> Hello All,
> 
> I have the following rewrite rule
> 
> 
> RewriteCond %{REMOTE_ADDR}       ^129.219.[3-4][2-7].* 
> RewriteCond %{REQUEST_URI}       /web/* 
> RewriteRule  ^/web(.+)   http://www.eas.asu.edu/$1 [L] 
> 
> Will it cover all the IP address from 129.219.32.*   TO 129.219.47.* ?????

No, it won't cover .40 or .41
Regular expressions are character based. Your rule says to match things
where the first character is 3 or 4, and the second character is between
2 and 7. Thus, 32-37 and 42-47.

-- 
Rich Bowen - rbowen@rcbowen.com
Did I have the dream, or did the dream have me? (Rush - Nocturne)

---------------------------------------------------------------------
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