httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
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 <sean@conman.org> 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:
> 
>         http://work.flummux.org/2005/07/08.1
>         http://work.flummux.org/test
>         http://work.flummux.org/foo
> 
>   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 http://work.flummux.org/ 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.

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