Stop NGINX from registering my IP address

I would like NGINX not to register my own IP link in my access.log. Is it possible? I can easily do this in Apache, but I could not find anything like it for NGINX.

+3
source share
2 answers

You can create a virtual host that will only record your calls, while the main journal will record the rest. In this case, you will get access to the new virtual host from your computer.

server {
  listen       80;
  server_name  domain.com www.domain.com;
  access_log   logs/domain.access.log;

Then you create a second

server {
  listen       80;
  server_name  me.domain.com;
  access_log   logs/me.domain.access.log; 

Or delete the last line.
Thus, your calls will not be mixed with external accesses.

me.domain.com DNS /etc/hosts IP-, .

0

, .

.

, .

. , , . . IP- .

URL-, , ?

+1

Source: https://habr.com/ru/post/1761650/


All Articles