RE: Using Rewrite rules to force all requests to a specific page except those comming from curtain IP addresses:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you so much - It is now working as expected.

Thanks

Simon.

> -----Original Message-----
> From: Simon Billis [mailto:simon@xxxxxxxxxx]
> Sent: 29 May 2007 20:00
> To: users@xxxxxxxxxxxxxxxx
> Subject: RE:  Using Rewrite rules to force all requests to a
> specific page except those comming from curtain IP addresses:
> 
> Hi Joshua,
> 
> Thank you :-)
> 
> I've been looking at this for a long time and failed to see the error.
> 
> Now to work on the logic...
> 
> Many thanks
> 
> Simon.
> 
> > -----Original Message-----
> > From: jslive@xxxxxxxxx [mailto:jslive@xxxxxxxxx] On Behalf Of Joshua
> Slive
> > Sent: 29 May 2007 19:48
> > To: users@xxxxxxxxxxxxxxxx
> > Subject: Re:  Using Rewrite rules to force all requests to
> a
> > specific page except those comming from curtain IP addresses:
> >
> > On 5/29/07, Simon Billis <simon@xxxxxxxxxx> wrote:
> > > Hi Folks,
> > >
> > > Further to my last post I have followed the suggestion to log the
> > rewrite
> > > and I have found the following:
> > >
> > > 192.168.244.105 - - [29/May/2007:19:33:26 +0100]
> > > [dev.mydomain.com/sid#89cf438][rid#8c496a8/initial] (4) RewriteCond:
> > > input='192.168.244.247' pattern='^!192\.168\.244\.247$' => not-matched
> > > 192.168.244.105 - - [29/May/2007:19:33:26 +0100]
> >
> > > Form the above it appears that "RewriteCond %{REMOTE_ADDR}
> > > ^!192\.168\.244\.105$" is not being triggered. Have I got the syntax
> > > incorrect or is the ! not supported for this?
> >
> > Yes, the syntax is wrong. The "!" must be before the "^". What you
> > have is matching against the literal string "!192.168.244.105".
> >
> > 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@xxxxxxxxxxxxxxxx
> >    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> 
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.



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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux