Add robots handling
This commit is contained in:
8
etc/nginx/snippets/robots.conf
Normal file
8
etc/nginx/snippets/robots.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
proxy_hide_header X-Robots-Tag;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
location = /robots.txt {
|
||||
root /srv/nginx;
|
||||
allow all;
|
||||
access_log off;
|
||||
}
|
Reference in New Issue
Block a user