Received: (qmail 3797 invoked by uid 501); 29 Oct 2000 20:49:38 -0000 Message-Id: <20001029204938.3796.qmail@locus.apache.org> Date: 29 Oct 2000 20:49:38 -0000 From: Martin Hierling Reply-To: mad@cc.fh-lippe.de To: submit@bugz.apache.org Subject: txt RewriteMap doesīt work anymore X-Send-Pr-Version: 3.110 >Number: 6758 >Category: mod_rewrite >Synopsis: txt RewriteMap doesīt work anymore >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: duplicate >Submitter-Id: apache >Arrival-Date: Sun Oct 29 12:50:00 PST 2000 >Closed-Date: Sun Oct 29 18:19:52 PST 2000 >Last-Modified: Sun Oct 29 18:19:52 PST 2000 >Originator: mad@cc.fh-lippe.de >Release: 1.3.14 >Organization: >Environment: SuSE Linux 7.0, gcc version 2.95.2 19991024 (release), Linux archimedes 2.2.16my-SMP #3 SMP Mon Oct 23 15:28:04 CEST 2000 i686 unknown ./configure \ "--with-layout=Apache" \ "--prefix=/usr/local/apache" \ "--sysconfdir=/etc" \ "--logfiledir=/var/log/apache" \ "--enable-shared=max" \ "--enable-module=most" \ "--activate-module=src/modules/zmod/libzmod.a " \ "--enable-shared=zmod" \ "--enable-module=rewrite" \ "--enable-suexec" \ "--suexec-caller=wwwrun" \ "--suexec-docroot=/" \ "--suexec-logfile=/var/log/apache/cgi.log" \ "--suexec-uidmin=500" \ "--suexec-gidmin=40" \ "--suexec-safepath=/usr/local/bin:/usr/bin:/bin" >Description: 2 Maschines, 1 with Apache 1.3.12 and one with .14. On Box one everyting is fine, on Box 2 the same definition of RewriteMap and Redirect doensnīt work. RewriteLog said: 62.155.248.22 - - [29/Oct/2000:21:02:31 +0100] [cometo.listinus.de/sid#80b7b5c][rid#8137de4/initial] (2) init rewrite engine wi th requested uri /martin 62.155.248.22 - - [29/Oct/2000:21:02:31 +0100] [cometo.listinus.de/sid#80b7b5c][rid#8137de4/initial] (3) applying pattern '^/([ a-z]{2,10})$' to uri '/martin' 62.155.248.22 - - [29/Oct/2000:21:02:31 +0100] [cometo.listinus.de/sid#80b7b5c][rid#8137de4/initial] (6) cache lookup FAILED, f orcing new map lookup 62.155.248.22 - - [29/Oct/2000:21:02:31 +0100] [cometo.listinus.de/sid#80b7b5c][rid#8137de4/initial] (5) map lookup FAILED: map =shortlink[txt] key=$1 62.155.248.22 - - [29/Oct/2000:21:02:31 +0100] [cometo.listinus.de/sid#80b7b5c][rid#8137de4/initial] (2) rewrite /martin -> htt p://www.listinus.de/index.php?module=topsites&screen=topsitesSHOW&intern=TRUE&topID=161 62.155.248.22 - - [29/Oct/2000:21:02:31 +0100] [cometo.listinus.de/sid#80b7b5c][rid#8137de4/initial] (3) split uri=http://www.l istinus.de/index.php?module=topsites&screen=topsitesSHOW&intern=TRUE&topID=161 -> uri=http://www.listinus.de/index.php, args=mo dule=topsites&screen=topsitesSHOW&intern=TRUE&topID=161 62.155.248.22 - - [29/Oct/2000:21:02:31 +0100] [cometo.listinus.de/sid#80b7b5c][rid#8137de4/initial] (2) explicitly forcing red irect with http://www.listinus.de/index.php 62.155.248.22 - - [29/Oct/2000:21:02:31 +0100] [cometo.listinus.de/sid#80b7b5c][rid#8137de4/initial] (1) escaping http://www.li stinus.de/index.php for redirect 62.155.248.22 - - [29/Oct/2000:21:02:31 +0100] [cometo.listinus.de/sid#80b7b5c][rid#8137de4/initial] (1) redirect to http://www .listinus.de/index.php?module=topsites&screen=topsitesSHOW&intern=TRUE&topID=161 [REDIRECT/302] And httpd.conf as following: RewriteEngine On RewriteLog /home/list/misc/logs/rewrite.log RewriteLogLevel 8 RewriteMap shortlink txt:/tmp/apache_map.txt RewriteRule ^/([a-z]{2,10})$ http://www.listinus.de/index.php?module=topsites&screen=topsitesSHOW&intern=TRUE&topID=${shortlink:$1|161} [R] apache_map is readable for httpd. The same works fine on box 1 with 1.3.12. Apache map looks like: #Map bmw 116 martin 116 >How-To-Repeat: You can try the cometo.listinus.de/bmw (box1) and the www.listinus.de/bmw (box 2) but i donīt know if it helps you. >Fix: even donīt know. tried everyting I knew, filesystem, wrong regex, enabled all Apache Modules >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: slive State-Changed-When: Sun Oct 29 18:19:52 PST 2000 State-Changed-Why: This is a known bug. See http://bugs.apache.org/index.cgi/full/6671 and http://httpd.apache.org/dist/apache_1.3.14-fix.diff Class-Changed-From-To: sw-bug-duplicate Class-Changed-By: slive Class-Changed-When: Sun Oct 29 18:19:52 PST 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! ]