server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; location = /healthz { access_log off; add_header Content-Type text/plain; return 200 'ok'; } location = /robots.txt { add_header Cache-Control "public, max-age=300"; try_files /robots.txt =404; } location = /sitemap.xml { default_type application/xml; add_header Cache-Control "public, max-age=300"; try_files /sitemap.xml =404; } location ~ ^/(docs|contribute|community)/?$ { try_files $uri $uri/ /index.html; } error_page 404 =404 /404.html; location = /404.html { internal; } location / { try_files $uri $uri/ =404; } }