Re: [users@httpd] mod_rewrite - server variable in CondPattern of RewriteCond

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

 



Thanks for spending your time for this.
I am using Apache available with Mandrake 9.2 distro and is installed
in Mandrake 10.1. I checked this on a win2k with Apache 1.3.29 and it
works.

What I want to do is check that the user requested URI doesnt starts
with a looked up value from a RewriteMap. Like this

RewriteCond %{REQUEST_URI} !^/${map:%{SERVER_NAME}}

Can you tell me whether it is bug in 1.3.28. If bug what is the work
around without doing any modification to Apache.


On Fri, 11 Mar 2005 09:25:58 -0500, Noah <sitz@xxxxxxxxxxxx> wrote:
> On Fri, Mar 11, 2005 at 04:01:00PM +0530, Antony Paul wrote:
> 
> > RewriteCond %{REQUEST_URI} ^/%{REMOTE_HOST} .*
> >
> > This is giving a Systax error and  RewriteCond: cannot compile regular
> > expression error.
> 
> Because your syntax is invalid. ;)
> 
>  From http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond:
> 
> Syntax: RewriteCond TestString CondPattern
> 
> You have *three* arguments to RewriteCond:
>     1) %{REQUEST_URI}
>     2) /%{REMOTE_HOST}
>     3) .*
> 
> What exactly are you trying to accomplish with this condition?
> 
> --n
> 
> --
> <huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
> <huey> ^^^ Making Flippy Floppy
> 
> 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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