You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Freddy Frouin <fr...@fluxus.net> on 2000/12/28 11:37:17 UTC

mod_rewrite/7014: Apache do not seem to receive response of RewriteMap prg

>Number:         7014
>Category:       mod_rewrite
>Synopsis:       Apache do not seem to receive response of RewriteMap prg
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Dec 28 02:40:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     freddy.frouin@fluxus.net
>Release:        1.3.14 patched with apache_1.3.14-fix.diff
>Organization:
apache
>Environment:
FreeBSD 3.3-RELEASE FreeBSD 3.3-RELEASE #0: Tue Mar  7 16:14:49 CET 2000
/usr/src/sys/compile/GENERIC  i386
>Description:
httpd.conf (in a virtualHost):
	RewriteMap access prg:/path/to/my/script
	RewriteCond %{REQUEST_URI} ^/proxy
	RewriteRule ^/proxy/(.*)$ ${access:$1}

my script:
	#!/path/to/perl
	$|=1;
	while(<STDIN>) {
	  print $_;
	}

The rewrite log give me allways the following information:
map lookup OK: map=access key=the/good/value/of/$1 -> val=

val is allways NULL.
>How-To-Repeat:

>Fix:

>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!     ]