httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@engelschall.com (Ralf S. Engelschall)
Subject Re: Server variables in .htaccess files under 1.3
Date Tue, 24 Mar 1998 12:30:29 GMT

In article <35179514.566A4D3E@iii.co.uk> you wrote:

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

I think this the known bug in 1.3b5 which broke mod_userdir, mod_rewrite, etc.
Please either try the latest 1.3b6-dev or at least apply the patch available
under http://www.apache.org/dist/...
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message