On Mon, Feb 27, 2012 at 1:00 AM, Julie Xu <xll40@xxxxxxxxxxx> wrote: > Hi > > I want do rewrite on file proxy.pac. that means if a client use IE from > 10.1.1.0/24 to query proxy.pac, will get proxy1.pac, and other get > proxy.pac. > > I have did: > > <IfModule rewrite_module> > RewriteEngine On > RewriteCond %{REMOTE_ADDR} ^10\.1\.1\. > RewriteRule ^proxy.pac$ proxy1.pac > </IfModule> > > and reload httpd, but, the client in subnet 10.1.1.0/24 still get proxy.pac > not proxy1.pac. > > Could anyone advice me what I did wrong? > mod_rewrite isn't loaded, or this rule is in virtualhost context so ^proxy.pac$ doesn't match (^/proxy.pac$) -- Eric Covener covener@xxxxxxxxx --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx