Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gives 404 for /nginx_status #4

Open
mouryaamit opened this issue Oct 16, 2016 · 0 comments
Open

Gives 404 for /nginx_status #4

mouryaamit opened this issue Oct 16, 2016 · 0 comments

Comments

@mouryaamit
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant