Re: [users@httpd] proxy_fcgi and PHP-FPM: error pages and config syntax

2012-02-22 Thread Mark Montague
On February 22, 2012 12:20 , Jan Engelhardt wrote: Did you try accesing FPM over unix socket? The way I see it, the mod_proxy and/or libapr source code do not have any provisions for parsing anything but, and resolving to, IPv4/IPv6 sockaddrs. (Would have loved to use proxy:fcgi://%2Fvar%2Frun

Re: [users@httpd] proxy_fcgi and PHP-FPM: error pages and config syntax

2012-02-22 Thread Jan Engelhardt
On Wednesday 2012-02-22 17:56, Mark Montague wrote: > RewriteRule \.php$ > proxy:fcgi://localhost:8002/%{DOCUMENT_ROOT}/%{SCRIPT_FILENAME} > RewriteRule ^/?(.*\.php)$ fcgi://127.0.0.1:9003/www/wp3/wordpress/$1 [P,L] >> >> NB: When using fcgi://etc. or proxy:fcgi://etc. as substitu

Re: [users@httpd] proxy_fcgi and PHP-FPM: error pages and config syntax

2012-02-22 Thread Mark Montague
On February 22, 2012 11:48 , Jan Engelhardt wrote: On Wednesday 2012-02-22 17:38, Jan Engelhardt wrote: RewriteEngine On RewriteRule \.php$ proxy:fcgi://localhost:8002/%{DOCUMENT_ROOT}/%{SCRIPT_FILENAME} I share the dismay you might be expressing at seeing that. Is there a nicer way to configu

Re: [users@httpd] proxy_fcgi and PHP-FPM: error pages and config syntax

2012-02-22 Thread Jan Engelhardt
On Wednesday 2012-02-22 17:38, Jan Engelhardt wrote: >>> >>> RewriteEngine On >>> RewriteRule \.php$ >>> proxy:fcgi://localhost:8002/%{DOCUMENT_ROOT}/%{SCRIPT_FILENAME} >>> >>> I share the dismay you might be expressing at seeing that. Is there a >>> nicer way to configure accessing FPM through Fa

Re: [users@httpd] proxy_fcgi and PHP-FPM: error pages and config syntax

2012-02-22 Thread Jan Engelhardt
On Wednesday 2012-02-22 15:40, Mark Montague wrote: > On February 22, 2012 6:10 , Jan Engelhardt wrote: >> >> RewriteEngine On >> RewriteRule \.php$ >> proxy:fcgi://localhost:8002/%{DOCUMENT_ROOT}/%{SCRIPT_FILENAME} >> >> I share the dismay you might be expressing at seeing that. Is there a >> ni

Re: [users@httpd] proxy_fcgi and PHP-FPM: error pages and config syntax

2012-02-22 Thread Mark Montague
On February 22, 2012 6:10 , Jan Engelhardt wrote: The first issue that arises is that error page generation is completely left to PHP-FPM. Since FPM delivers error codes like 404 without any page context, one essentially gets a blank page in browsers. It is only wget/curl where one sees that som

[users@httpd] proxy_fcgi and PHP-FPM: error pages and config syntax

2012-02-22 Thread Jan Engelhardt
Apache 2.3/2.4 has a new "mod_proxy_fcgi" module. For fun (and maybe, profit), I was experimenting in using proxy_fcgi in conjunction with PHP-FPM instead of mod_php5 for execution of PHP scripts. The first issue that arises is that error page generation is completely left to PHP-FPM. Since FP