From cefe5400cb2e9346ae569a62947c0acf1fa84e7a Mon Sep 17 00:00:00 2001 From: "srvproxy001.itguys.com.br" Date: Wed, 8 Oct 2025 22:02:49 -0300 Subject: [PATCH] =?UTF-8?q?[Auto-Sync]=20Atualiza=C3=A7=C3=A3o=20das=20con?= =?UTF-8?q?figura=C3=A7=C3=B5es=20em=20srvproxy001.itguys.com.br=20-=20202?= =?UTF-8?q?5-10-08=2022:02:49?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/sites-available/default-catchall.conf | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/nginx/sites-available/default-catchall.conf b/nginx/sites-available/default-catchall.conf index ed3d47a..0c8a53c 100644 --- a/nginx/sites-available/default-catchall.conf +++ b/nginx/sites-available/default-catchall.conf @@ -73,7 +73,15 @@ server { error_page 403 /403.html; error_page 404 /404.html; error_page 500 502 503 504 /50x.html; + location = /nginx_status { + stub_status; + # --- Segurança (removi a linha duplicada para limpeza) --- + allow 127.0.0.1; # Acesso local (localhost) + allow 172.16.254.1; # Permite o próprio servidor / Zabbix + allow 172.16.254.11; + deny all; # Bloqueia todos os outros + } # --- Bloco 7: Lógica para Servir as Páginas de Erro de Forma Segura --- location = /403.html { internal; @@ -92,13 +100,4 @@ server { location / { return 404; } - location /nginx_status { - stub_status; - - # --- Segurança --- - allow 127.0.0.1; # Acesso local (localhost) - allow 172.16.254.1; # Permite o próprio servidor - allow 172.16.254.1; # << ADICIONE O IP DO SEU ZABBIX/MONITOR AQUI - deny all; # Bloqueia todos os outros -} }