httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] RewriteMap questions
Date Thu, 31 May 2007 15:02:54 GMT
On 5/31/07, Josh Trutwin <> wrote:

> One last problem I seem to be having is how the program returns NULL
> - I have this when the program finds a match in the map file:
> fputs(STDOUT, $map[$uri] . "\n");
> When it doesn't find a match though I have it doing this:
> fputs(STDOUT, "NULL");
> Which seemed the correct thing to do per the docs.  The request
> hangs even though the program has output buffering turned off too.

I haven't played much with program rewritemaps, but I'd guess that the
NULL needs a \n as well.

By the way, what do you expect apache to do with the empty rewritemap
result? I think you are better off rewriting to some default URL in
this case.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message