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 16:49:25 GMT
On Fri, 20 Aug 2004 Saqib.N.Ali@seagate.com wrote:

> > > 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
> 
> 
> OK how about this?
> RewriteCond %{REMOTE_ADDR}       ^129.219.[3-4]([2-7]|[0-1]).* 
> RewriteCond %{REQUEST_URI}       /web/* 
> RewriteRule  ^/web(.+)   http://www.eas.asu.edu/$1 [L] 
> 
> Will this cover all the IP address from 129.219.32.*   TO 129.219.47.* 
> ?????

No. Not only will it cover 30 and 31, but it misses 38 and 39.
Perhaps something more like (3[2-9]|4[0-7])

-- 
And everyone said, "If we only live, 
We too will go to sea in a Sieve -
To the hills of the Chankly Bore!"
 (The Jumblies, by Edward Lear)

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