You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Garrett Rooney <ro...@electricjellyfish.net> on 2006/05/10 06:11:20 UTC

Re: mod_proxy_fcgi and php

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