Received: (qmail 18875 invoked by uid 501); 15 Oct 2000 12:11:42 -0000 Message-Id: <20001015121142.18874.qmail@locus.apache.org> Date: 15 Oct 2000 12:11:42 -0000 From: Gernot Tenchio Reply-To: gernot@tenchio.de To: submit@bugz.apache.org Subject: RewriteRules from 1.3.12 not working in 1.3.14 X-Send-Pr-Version: 3.110 >Number: 6684 >Category: mod_rewrite >Synopsis: RewriteRules from 1.3.12 not working in 1.3.14 >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: duplicate >Submitter-Id: apache >Arrival-Date: Sun Oct 15 05:20:00 PDT 2000 >Closed-Date: Sun Oct 15 21:09:50 PDT 2000 >Last-Modified: Sun Oct 15 21:09:50 PDT 2000 >Originator: gernot@tenchio.de >Release: 1.3.14 >Organization: >Environment: uname -a: Linux brian 2.4.0-test9 #3 Sam Okt 7 13:07:02 CEST 2000 i586 unknown gcc version 2.96 20000731 (Red Hat Linux 7.0) gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) apache 1.3.14 with eapi-patch from mod_ssl-2.7.0-1.3.14 mm-1.1.2 >Description: testet with both versions of gcc. the Rules in httpd.conf: RewriteEngine on RewriteLog /var/log/httpd/rewrite_log RewriteLogLevel 2 RewriteMap lowercase int:tolower RewriteCond %{REQUEST_URI} !^/icons/* RewriteCond %{REQUEST_URI} !^/pics/* RewriteCond %{REQUEST_URI} !^/dav/* RewriteCond %{REQUEST_URI} !^/cgi-bin/* RewriteRule ^/(.*)$ /home/httpd/%{SERVER_NAME}/html/$1 RewriteCond %{REQUEST_URI} ^/cgi-bin/ RewriteRule ^/cgi-bin/(.*)$ /home/httpd/${lowercase:%{SERVER_NAME}}/cgi-bin/$1 [T=application/x-httpd-cgi] RewriteCond %{REQUEST_URI} ^/icons/ RewriteRule ^/icons/(.*)$ /home/httpd/${lowercase:%{SERVER_NAME}}/icons/$1 RewriteCond %{REQUEST_URI} ^/pics/ RewriteRule ^/pics/(.*)$ /home/httpd/${lowercase:%{SERVER_NAME}}/pics/$1 the result in rewrite_log: without lowercase (Rule 1) this seems to be OK: (2) init rewrite engine with requested uri /index.php (2) rewrite /index.php -> /home/httpd/brian.telco-tech.de/html/index.php (2) local path result: /home/httpd/brian.telco-tech.de/html/index.php (1) go-ahead with /home/httpd/brian.telco-tech.de/html/index.php [OK] with lowercase (Rule 5) this seems to be not OK: (2) init rewrite engine with requested uri /pics/linux-logo.png (2) rewrite /pics/linux-logo.png -> /home/httpd/%{server_name}/pics/linux-logo.png (2) local path result: /home/httpd/%{server_name}/pics/linux-logo.png (1) go-ahead with /home/httpd/%{server_name}/pics/linux-logo.png [OK] ^^^^^^^^^^^^^^ >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: slive State-Changed-When: Sun Oct 15 21:09:49 PDT 2000 State-Changed-Why: Yes, there appears to be a problem with back-reference expansion in rewrite-maps. The problem is being tracked in PR6671. Class-Changed-From-To: sw-bug-duplicate Class-Changed-By: slive Class-Changed-When: Sun Oct 15 21:09:49 PDT 2000 >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! ]