Pool config
pm.status_path = /fpm-status
fastcgi.conf
<IfModule mod_fastcgi.c>
# Directory where the PHP-FPM fastcgi sockets exist
FastCgiIpcDir /sites/www/fastcgi
# All files ending in .php will be handled by php-fpm
<FilesMatch \.php$>
SetHandler php5-fcgi
</FilesMatch>
# Fake directory that handles php-fpm requests.
# Directory can be anything, it should not exist and will
# not be visible to the end-user
# Each virtual host will alias this to a PHP-FPM socket
<Location "/fastcgiphp">
Order Deny,Allow
Deny from All
# Prevent accessing this path directly
Allow from env=REDIRECT_STATUS
</Location>
# Direct all PHP requests to the /fastcgiphp fake directory
# Each virtual host will alias this to a PHP-FPM socket
Action php5-fcgi /fastcgiphp
</IfModule>
Vhost config:
<IfModule mod_fastcgi.c>
# Reference to external PHP-FPM socket
# The path (/usr/local/bin) must exist but the filename (bob-php-
fpm)
# does not have to exist. The socket file (bob-php-fpm.sock)
should exist
# in the directory specified by the FastCgiIpcDir directive (/usr/
local/var/run/fastcg)
FastCgiExternalServer /usr/local/bin/df-php-fpm -socket df.sock
Alias /fastcgiphp /usr/local/bin/df-php-fpm
</IfModule>
<Directory /sites/www/www.aaaa.com/web>
Options SymLinksIfOwnerMatch ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
But it could be that my .htaccess is hamering me so I added:
RewriteCond %{REQUEST_URI} !=/fpm-status as seen here:
http://www.ducea.com/2009/03/01/wordpress-mod_rewrite-rules-taking-over-mod_status/
Rob
On 7 dec, 00:55, Jérôme Loyet <m...@fatbsd.com> wrote:
> 2010/12/7 Rob <r...@bsdfreaks.nl>:
>
> > Hello,
>
> > Do have this working already?
>
> yes this works
>
>
>
> > Rob
>
> > On 10 okt, 20:18, Karel <kare...@gmail.com> wrote:
> >> Hello,
>
> >> php-fpm rocks. Thanks to the wiki and the posts in this newsgroup I
> >> got it working nicely. But I am not sure how to set it up in Apache2,
> >> so that it responds tostatusand ping requests. I have seen the
> >> nginx tutorials, but I am not sure how to adapt it.
>
> >> Setting up an alias does work for ping (Reply: pong), but not forstatus(Int. server error). What am I missing?
>
> what is your conf ?
>
>
>
>
>
>
>
>
>
> >> Thanks for reading!