Serve static robots.txt

Nginx

Serve a static robots.txt in Nginx

text

server { ... location /robots.txt { add_header Content-Type text/plain; return 200 "User-agent: *\nAllow: /\nSitemap: https://example.com/sitemap.xml\n"; } ... }