I just run into some issue while trying to hook some nodes to datadog for monitoring.
I am using ubuntu server 14.04.5 LTS. I added a nginx ppa:nginx/stable
so I got nginx 1.10.3 installed.
my nginx configuration /etc/nginx/sites-available/check.conf
server {
listen 80 ;
server_name localhost;
root /usr/share/nginx/html/vhosts/elbcheck/htdocs;
index index.php;
access_log off;
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location / {
try_files $uri =404;
}
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
location ~ ^/(status|ping)$ {
access_log off;
allow 127.0.0.1;
deny all;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
}
}
The configuration above works with nginx 1.4.6 but blank in nginx 1.10.3. Is there anything step I am missing aside uncommenting pm.status_path and ping.path ?
Thanks