robots.txt
This commit is contained in:
parent
c5a5a2dff5
commit
5d19eacf95
4 changed files with 20 additions and 6 deletions
|
@ -9,9 +9,14 @@ server {
|
|||
client_body_timeout 60;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
location ~ \.ht {
|
||||
deny all;
|
||||
}
|
||||
location ~ \.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location /robots.txt {
|
||||
root /etc/nginx;
|
||||
try_files /robots.txt =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ @rewrite;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue