httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: mod_proxy_fcgi and php
Date Wed, 10 May 2006 04:11:20 GMT
On 4/22/06, Markus Schiegl <ms@schiegl.com> wrote:

Sorry it took me so long to get back to this.  Got distracted with
other things, etc.

> From my limited perspective r->filename should be set to
> "/opt/www/html/i.php"
> Any ideas?

mod_proxy_fcgi is talking to an arbitrary socket that could correspond
to any file on disk, how would it figure out what to set r->filename
to?

The fact that PHP has settings you can tweak to make this work implies
to me that it's not a problem we need to fix...

> While playing with mod_rewrite i realized it does not recognize fcgi as
> scheme yet (1)
> The following patch should solve this.
>
> Index: httpd-trunk/modules/mappers/mod_rewrite.c
> ===================================================================
> --- httpd-trunk/modules/mappers/mod_rewrite.c   (revision 396157)
> +++ httpd-trunk/modules/mappers/mod_rewrite.c   (working copy)
> @@ -577,6 +577,9 @@
>          if (!strncasecmp(uri, "tp://", 5)) {        /* ftp://    */
>              return 6;
>          }
> +        if (!strncasecmp(uri, "cgi://", 6)) {       /* fcgi://    */
> +            return 7;
> +        }
>          break;
>
>      case 'g':

I'll look at getting this checked in, thanks!

-garrett

Mime
View raw message