httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Odd interaction between mod-rewrite and mod-cgi
Date Mon, 11 Jul 2005 00:04:34 GMT
On 7/9/05, Sean Conner <> wrote:

>         RewriteRule   ^([0-9][0-9])(.*) nph-blog.cgi/$1$2 [L]
>         RewriteRule   ^(test)(.*)       nph-raw.cgi/$1$2  [L]
>         RewriteRule   ^(foo)(.*)        nph-raw.cgi?$1$2  [L]
>   Hit the following URLs:
>   And you'll see the spurious output at the bottom of the pages (at least in
> Firefox and Lynx---the output appears after the </HTML> tag so some browsers
> may ignore it, but it's there).  I did some searches and could not find any
> bugs close to this behavior in Apache 2.0 (this all works fine under Apache
> 1.3, also the main page at is a static page so
> that's why there's no spurious output there).  And nothing appears in the
> error log.

A wild guess: try adding the "PT" flag to your RewriteRules.

If that doesn't work, I'd need to look at the code in mod_cgi that
decides if a request is nph or not.


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