www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladislav Shulgin <shu...@sputnikmedia.net>
Subject mod_rewrite/6950: RewriteMap problem
Date Fri, 08 Dec 2000 15:54:53 GMT

>Number:         6950
>Category:       mod_rewrite
>Synopsis:       RewriteMap problem
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Dec 08 08:00:02 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     shulya@sputnikmedia.net
>Release:        1.3.14
>Organization:
apache
>Environment:
RedHat Linux 6.2
>Description:
In My http.conf I have next:

RewriteMap my_map prg:/home/web/conf/parser.pl
RewriteCond %{HTTP_HOST} !^(www\.)?ukrbiz\.net$
RewriteRule ^(.+)$ ${my_map:%{HTTP_HOST}$1} [L]

In 1.3.12 all works fine, but on 1.3.14 passed to my Perl Script parameters is broken.

In rewrite log file I found something like that:
map lookup FAILED map=ubiz_map key=%{HTTP_HOST

May be in new version something happens with parsing and recognising in map key values
>How-To-Repeat:
Repeat my example of my httpd.conf file in your system and create parser.pl script like that:

#!/usr/bin/perl
$| = 1;
$base_dir = "/home/web/htdocs/kbd/";
while (<>) {
   print $_;
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@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!     ]
 
 


Mime
View raw message