add /robots.txt
This commit is contained in:
parent
92cc200af6
commit
8ada0928b0
4
config/include/robots.conf
Normal file
4
config/include/robots.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
location /robots.txt {
|
||||||
|
default_type text/plain;
|
||||||
|
return 200 "User-agent: *\nDisallow: /";
|
||||||
|
}
|
||||||
@ -22,4 +22,5 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
include /etc/nginx/include/location.conf;
|
include /etc/nginx/include/location.conf;
|
||||||
|
include /etc/nginx/include/robots.conf;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user