I don’t know why, but it is simply not working for me. I tried changing
my
SCRIPT_FILENAME to match yours exactly, and I changed my location block
to
“location ~ ^/fpm-status$ {}” - as opposed to using “=”. Same problems.
I also tried toggling fastcgi_intercept_errors to see if that did
anything.
configuration to what I would expect to work, but, alas, it does not.
2013/06/20 22:29:51 [error] 85006#0: *13 FastCGI sent in stderr:
“Primary script unknown” while reading response header from upstream,
client: x.x.x.132, server: domain.com, request: “GET /fpm-status
HTTP/1.1”, upstream: “fastcgi://unix:/var/run/phpfpm.sock:”, host:
“domain.com”
Nothing shows up in php-fpm’s error log.
Thanks for any help/suggestions on getting this working!
For me,
location ~ ^/(status|ping|apc_info.php)$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass backend;
allow 127.0.0.1;
deny all;
}
with
pm.status_path = /status
in the pool definition works fine.
I use a stub config just to manage 127.0.0.1 access, which include a
load of monitoring stuff.
> I use php-fpm via fastcgi to handle my PHP scripts. I have
> configuration to what I would expect to work, but, alas, it
> in my browser, and in the nginx error log:
>
$fastcgi_script_name;
I use a stub config just to manage 127.0.0.1 access, which
--
It seemed to be an issue with using $document_root$fastcgi_script_name
as
my SCRIPT_FILENAME. I changed it to: $request_filename, and it works
fine
now.
Thanks!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.