Re: Reverse RewriteCond?

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

 



On Tue, 30 Jun 2009 18:33:09 +0000, Mike -- EMAIL IGNORED wrote:

> I have (set in /etc/bashrc):
>    echo $HTML_TST
>    aa|bb|cc|dd|ee
> 
> and I tried:
> 
>    RewriteCond  ee %{ENV:HTML_TST}
> 
> following the documentation that says:
> 
>    Syntax: RewriteCond TestString CondPattern
> 
> I expected ee to be recognized as one ofthe alternatives in the pattern.
>  It didn't work.
> 
> Frustrated, I tried:
> 
>    RewriteCond  %{ENV:HTML_TST} ee
> 
> To my surprise, it did work, and as hoped, ff failed to match.
> 
> This meets my requirement of matching any of the members of a list, but
> appears to be contrary to the documentation.
> 
> Am I skating in this ice?
> 
> Thanks for your help.
> 
> Mike.
> 
> 
Further testing indicates that it really doesn't work:

   RewriteCond  %{ENV:HTML_TST} e

passes, which is not what is wanted.

Therefore, given that:

   RewriteCond  ee %{ENV:HTML_TST}

doesn't work, how can I pass iff one of a list is matched?

Thanks,
Mike.


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