Browse code

add robots.txt to sample nginx conf

devnewton authored on 01/12/2017 14:25:27
Showing 1 changed files
... ...
@@ -54,6 +54,11 @@ server {
54 54
                 proxy_set_header Connection "upgrade";
55 55
         }
56 56
 
57
+        location = /robots.txt {
58
+               add_header Content-Type text/plain;
59
+               return 200 "User-agent: *\nDisallow: /\n";
60
+        }
61
+
57 62
         ssl_certificate /etc/letsencrypt/live/b3.bci.im/fullchain.pem;
58 63
         ssl_certificate_key /etc/letsencrypt/live/b3.bci.im/privkey.pem;
59 64
         ssl_prefer_server_ciphers on;