12 lines
242 B
Plaintext
12 lines
242 B
Plaintext
server {
|
|
listen 80;
|
|
rewrite ^ https://$http_host$request_uri? permanent; # force redirect http to https
|
|
server_tokens off;
|
|
|
|
|
|
location = /robots.txt {
|
|
add_header Content-Type text/plain;
|
|
return 200 "User-agent: *\nDisallow: /\n";
|
|
}
|
|
}
|