httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] RewriteMap questions
Date Thu, 31 May 2007 15:02:54 GMT
On 5/31/07, Josh Trutwin <josh@trutwins.homeip.net> 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.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message