You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Michael Smith <mj...@iii.co.uk> on 1998/03/24 12:12:21 UTC

Server variables in .htaccess files under 1.3

Folks,

Apologies if this has been raised before, but I've just encountered it
and can't see any mention in the docs or bug reports.

I have rules like this which work fine under 1.2

RewriteEngine on
RewriteCond /www/%{SERVER_NAME}:%{SERVER_PORT}%{REQUEST_URI} !-f
RewriteCond /www/common%{REQUEST_URI} -f
RewriteRule ^(.+) /common/icons/$1

This is such that if an icon isn't found on a specific server, there is
a fallback area of common icons.

Under 1.3b5 however, I get the following kind of entries in my rewrite
log

192.168.7.22 - - [24/Mar/1998:11:02:56 +0000]
[tyree.iii.co.uk/sid#159040][rid#1d6840/initial] (4) RewriteCond:
input='/www/' pattern='!-f' => matched
192.168.7.22 - - [24/Mar/1998:11:02:56 +0000]
[tyree.iii.co.uk/sid#159040][rid#1d6840/initial] (4) RewriteCond:
input='/www/common' pattern='-f' => not-matched

That is to say that the server variables are not being substituted.  Is
this a bug or don't rewrites like this work any more?

Cheers

Mike



Re: Server variables in .htaccess files under 1.3

Posted by Michael Smith <mj...@iii.co.uk>.
Should have checked in 1.3b6-dev.  Appears to be fixed here.

Mike


Michael Smith wrote:

> Folks,
>
> Apologies if this has been raised before, but I've just encountered it
> and can't see any mention in the docs or bug reports.
> [snip]
>
> Cheers
>
> Mike