From 30a78fb8a8525281296301907ffd196daffb3db9 Mon Sep 17 00:00:00 2001 From: nyuuzyou Date: Mon, 12 Feb 2024 16:09:02 +0300 Subject: [PATCH] Added robots.txt --- nginx.conf | 4 ++++ static/robots.txt | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 static/robots.txt diff --git a/nginx.conf b/nginx.conf index ff33aa9..242c867 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,6 +5,10 @@ server { root /var/www/binternet; index index.php; + location = /robots.txt { + root /var/www/binternet; + } + location ~ \.php$ { fastcgi_pass unix:/run/php-fpm82.sock; fastcgi_index index.php; diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /