tjstein / php5-fpm-munin-plugins

A set of Munin plugins for PHP5-FPM
http://tjstein.com
MIT License
109 stars 45 forks source link

nginx location errors #22

Closed clarkk closed 8 years ago

clarkk commented 8 years ago

When adding the location in nginx I get these errors

2016/05/02 11:31:20 [emerg] 20982#20982: invalid parameter "127.0.0.1:9000" in /var/ini/nginx/vhosts/dyntest.dk.conf:172
2016/05/02 11:31:40 [emerg] 20996#20996: invalid parameter "stats_collector.localdomain" in /var/ini/nginx/vhosts/dyntest.dk.conf:173
2016/05/02 11:31:52 [emerg] 21010#21010: invalid parameter "watchdog.localdomain" in /var/ini/nginx/vhosts/dyntest.dk.conf:174

And the line with fastcgi_pass backend; should backend be this?

upstream backend {
    server  unix:/var/run/php5-fpm.sock;
}

When testing with minimal parameters in the location

    location ~ ^/(status|ping)$ {
        include  fastcgi_params;
        fastcgi_pass  unix:/var/run/php5-fpm.sock;
        fastcgi_param  SCRIPT_FILENAME  $fastcgi_script_name;
#       allow  127.0.0.1:9000;
#       allow  stats_collector.localdomain;
#       allow  watchdog.localdomain;
#       deny  all;
    }

I get 403 when requesting with curl http://localhost/status