You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Paul Evad <pe...@kudosnet.com> on 2001/03/13 05:56:37 UTC

general/7399: mod_rewrite ${map:$1} doesn't expand

>Number:         7399
>Category:       general
>Synopsis:       mod_rewrite ${map:$1} doesn't expand
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Mar 12 21:00:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     pevad@kudosnet.com
>Release:        1.3.19
>Organization:
apache
>Environment:
[root@pulsar standard]# uname -a
Linux pulsar.kudosnet.net 2.2.14-5.0smp #1 SMP Tue Mar 7 21:01:40 EST 2000 i686 unknown
>Description:

I've tried 1.3.14 (can't find patch file referenced in other bug reports for this same problem, or I WOULD try that). Also, 1.3.17 with an apparent 'patch', and 1.3.19. All yield the same result; mod_rewrite doesn't expand the $1 token in a rewrite map: 

RewriteEngine on
RewriteLogLevel 9
RewriteLog  /home/httpd/logs/rewrite.log
RewriteMap    cloak       prg:/home/httpd/cgi-bin/cloak/cloak.cgi
RewriteRule   ^/(.+\.(html|htm|php|php3))$ /${cloak:$1} [L]

${cloak:$1} doesn't expand. 
>How-To-Repeat:

>Fix:
I've seen references to a 1.3.14 patch file, but apparently it's been taken down?
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> 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!     ]