B
B
b4rret2016-06-10 20:01:30
linux
b4rret, 2016-06-10 20:01:30

How to deny access to Nginx Stats URL?

There is a server c location:

location /nginx_status {
        stub_status on;
        access_log   off;
        allow 127.0.0.1;
        deny all;
}

Nearby lies another server with cacti configured to work with nginx. Stops drawing graphs if you set the settings
allow 127.0.0.1;
deny all;

Even if you write allow 127.0.0.1;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2016-06-10
@b4rret

About write in the allow the address of the server, you go in some way, you are not polling the localhost

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question