Re: [users@httpd] Configure remote php-fpm server with SetHandler

2015-01-29 Thread Eric Covener
On Thu, Jan 29, 2015 at 9:34 AM, Santiago DIEZ wrote: > The directive that I fail to work out is *SetHandler*. > ​SetHandler will always pass the full path as mapped by the core of Apache to the fcgi server (that is one of the benefits). Perhaps for your case, changing where the file is mapped

Re: [users@httpd] Configure remote php-fpm server with SetHandler

2015-01-29 Thread Santiago DIEZ
Thanks Marcello but my ProxyPassMatch directive works fine. You've rightfully pointed out that I forgot the $1 though. That's a copy/paste mistake. The $1 appears in my directive. The directive that I fail to work out is *SetHandler*. That's the one for which I need help.

Re: [users@httpd] Configure remote php-fpm server with SetHandler

2015-01-28 Thread Marcello Lorenzi
Try with this: ... ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/mnt/app/test/$1 ... On 01/28/2015 09:26 PM, Santiago DIEZ wrote: Hi there, I have an /*httpd-2.4.10*/ server (ip 5.39.81.177:80 ) with htdocs files located in _/var/www/_. I have a

[users@httpd] Configure remote php-fpm server with SetHandler

2015-01-28 Thread Santiago DIEZ
Hi there, I have an *httpd-2.4.10* server (ip 5.39.81.177:80) with htdocs files located in */var/www/*. I have a remote *php-fpm* server (ip 91.121.180.140:9000) with htdocs files mounted in */htdocs/5-39-81-177/*. The httpd server currently passes php execution to the remote php-fpm server wit