From cc5c38ddfbc7b67ad5d755d317f8d4ffcd6698e3 Mon Sep 17 00:00:00 2001 From: "srvproxy001.itguys.com.br" Date: Tue, 16 Sep 2025 23:18:37 -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-09-16=2023:18:37?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/conf.d/global_robots.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 nginx/conf.d/global_robots.conf diff --git a/nginx/conf.d/global_robots.conf b/nginx/conf.d/global_robots.conf new file mode 100644 index 0000000..9645eae --- /dev/null +++ b/nginx/conf.d/global_robots.conf @@ -0,0 +1,13 @@ +# /etc/nginx/conf.d/global_robots.conf +# +# Esta configuração serve um ficheiro robots.txt genérico e restritivo +# para TODOS os sites servidos por este Nginx. + +location = /robots.txt { + # Adiciona um log para sabermos quando este ficheiro foi acedido. + access_log /var/log/nginx/robots.log; + + # Retorna o código de status 200 (OK) com o tipo de conteúdo 'text/plain'. + # O conteúdo é gerado diretamente aqui, sem precisar de um ficheiro físico. + return 200 "User-agent: *\nDisallow: /\n"; +}