Welcome! Log In Create A New Profile

Advanced

Reverse Proxy from Apache

Posted by MikeG 
MikeG
Reverse Proxy from Apache
September 13, 2009 04:54AM
Hi All,

I'm trying to use Apache's reverse proxy to the latest php-fpm patched
against Php 5.3. My conf is:
<Location /index.php>
ProxyPass http://127.0.0.1:9000/
ProxyPassReverse http://127.0.0.1:9000/
</Location>

The error I get is "The proxy server could not handle the request GET /
index.php".

I've found only a little discussion about using mod_fastcgi, but it
seems unecessary so proxying is better, right? Has anyone gotten it
working?

Thanks,
- Michael
Re: Reverse Proxy from Apache
September 13, 2009 06:44AM
On Sun, Sep 13, 2009 at 3:52 PM, MikeG<mgatto@lisantra.com> wrote:
>
> Hi All,
>
> I'm trying to use Apache's reverse proxy to the latest php-fpm patched
> against Php 5.3. My conf is:
> <Location /index.php>
>    ProxyPass http://127.0.0.1:9000/
>    ProxyPassReverse http://127.0.0.1:9000/
> </Location>
>
> The error I get is "The proxy server could not handle the request GET /
> index.php".
>
> I've found only a little discussion about using mod_fastcgi, but it
> seems unecessary so proxying is better, right? Has anyone gotten it
> working?
>
> Thanks,
> - Michael

php-fpm is fastcgi, not http proxy.

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
MikeGatto
Re: Reverse Proxy from Apache
September 13, 2009 05:38PM
Yes, but since it runs as its own process manager and as its own tcp
server, one should be able to connect to it via a proxy.

If it can only be connected to via fastcgi, then hopefully this list
can share the secrets of configuring Apache to interface with php-fpm.
There is an abundance of material on nginx, but nearly zero about
Apache. That is: use mod_fastcgi's "FastCgiExternalServer" directive
or can I use mod_fcgid and how?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 316
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready