Re: RewriteCond backreference in virtualhost context

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

 



2012/8/17 Eric Covener <covener@xxxxxxxxx>:
> On Fri, Aug 17, 2012 at 6:01 AM, Lazy <lazy404@xxxxxxxxx> wrote:
>> Hi All,
>>
>> a simple mod_rewrite rules
>>
>> RewriteEngine On
>>
>> RewriteCond /home/docroot/test/$1 -f
>> RewriteRule ^(.+).test$ /test/$1 [L]
>>
>> http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewritecond
>>
>> in apache 2.2.x this works in vhost and .htaccess context, in apache
>> 2.4.2 in vhost context $1 in RewriteCond is always empty
>>
>> Is this a bug or I'm missing something ?
>>
>
> Can you set LogLevel info rewrite:trace8 (2.4's  RewriteLog) and throw
> it into a pastebin?  There should not be a difference between the
> releases here.
>
> (re: other comments ITT, despite counter-intuitiveness RewriteRule's
> regex is evaluated first and captures are available in the preceding
> RewriteCond's)

I have just noticed that my config lacks '$', it was generated by
puppet and I didn't escape '$' properly.

After fixing this everything works as expected.

Thank You for your time.

Regards,
Michal Grzedzicki

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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