pm2-nginx icon indicating copy to clipboard operation
pm2-nginx copied to clipboard

Gives 404 for /nginx_status

Open mouryaamit opened this issue 8 years ago • 0 comments

Help me to work it. I am having following config

user  root;
worker_processes  1;
error_log  logs/error.log;
error_log  logs/error.log  notice;
error_log  logs/error.log  info;
pid        logs/nginx.pid;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    server_tokens off;
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                  '$status $body_bytes_sent "$http_referer" '
                  '"$http_user_agent" "$http_x_forwarded_for" "$txid"';
    access_log  logs/access.log  main;
    sendfile        off;
    gzip  on;
    include /usr/local/nginx/sites-enabled/*;
}

and

server {
    listen 3000;
    location /nginx_status {
        stub_status;
    }
}

but it return 404 for /nginx_status while other things work fine on same port

mouryaamit avatar Oct 16 '16 19:10 mouryaamit