Received: (qmail 74270 invoked by uid 501); 29 Jan 2001 06:40:06 -0000 Message-Id: <20010129064006.74269.qmail@apache.org> Date: 29 Jan 2001 06:40:06 -0000 From: Patric Sandelin Reply-To: patric@kajen.com To: submit@bugz.apache.org Subject: RewriteMap expansion fails under FreeBSD X-Send-Pr-Version: 3.110 >Number: 7147 >Category: mod_rewrite >Synopsis: RewriteMap expansion fails under FreeBSD >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sun Jan 28 22:50:00 PST 2001 >Closed-Date: Thu Feb 01 01:19:32 PST 2001 >Last-Modified: Thu Feb 01 01:19:32 PST 2001 >Originator: patric@kajen.com >Release: 1.3.14 >Organization: >Environment: FreeBSD host 4.2-RELEASE FreeBSD 4.2-RELEASE #0 >Description: My configuration ServerName pecka.dyndns.org DocumentRoot /usr/local/www/data RewriteEngine On RewriteMap lowercase int:tolower RewriteLog /tmp/rewrite.log RewriteLogLevel 9 RewriteCond %{REQUEST_FILENAME} !\.php$|\.html|\.jpg|\.gif$ RewriteCond %{REQUEST_FILENAME} [A-Z] RewriteRule ^(.+)$ ${lowercase:$1} Error Log output: 194.16.64.175 - - [28/Jan/2001:12:24:26 +0000] [pecka.dyndns.org/sid#80b100c][rid#8203034/initial] (2) init rewrite engine with requested uri /TEST 194.16.64.175 - - [28/Jan/2001:12:24:26 +0000] [pecka.dyndns.org/sid#80b100c][rid#8203034/initial] (3) applying pattern '^(.+)$' to uri '/TEST' 194.16.64.175 - - [28/Jan/2001:12:24:26 +0000] [pecka.dyndns.org/sid#80b100c][rid#8203034/initial] (4) RewriteCond: input='/TEST' pattern='!\.php$|\.html|\.jpg|\.gif$' => matched 194.16.64.175 - - [28/Jan/2001:12:24:26 +0000] [pecka.dyndns.org/sid#80b100c][rid#8203034/initial] (4) RewriteCond: input='/TEST' pattern='[A-Z]' => matched 194.16.64.175 - - [28/Jan/2001:12:24:26 +0000] [pecka.dyndns.org/sid#80b100c][rid#8203034/initial] (5) map lookup OK: map=lowercase key=$1 -> val=$1 194.16.64.175 - - [28/Jan/2001:12:24:26 +0000] [pecka.dyndns.org/sid#80b100c][rid#8203034/initial] (2) rewrite /TEST -> $1 194.16.64.175 - - [28/Jan/2001:12:24:26 +0000] [pecka.dyndns.org/sid#80b100c][rid#8203034/initial] (2) local path result: $1 I have the same configuration under Linux (downloaded, untared, make, make install + php4) and it works there. It doesn't expand the $1 in ${lowercase:$1} but if I try only $1 to see if it has a value, it shows the value that is in ^(.+)$ just like it should. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: fanf State-Changed-When: Thu Feb 1 01:19:31 PST 2001 State-Changed-Why: See http://httpd.apache.org/dist/apache_1.3.17-fix.diff Thanks for using Apache! >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]