diff --git a/nginx.example.conf b/nginx.example.conf index afb24c53d..bb546a6d3 100644 --- a/nginx.example.conf +++ b/nginx.example.conf @@ -4,6 +4,10 @@ server { root /usr/share/nginx/html; + # Relative Location on every redirect nginx sends (directory slash, `return`): + # TLS ends at the upstream proxy, so an absolute one would point at http://. + absolute_redirect off; + # ── Baseline security headers ────────────────────────────────────────────── # `always` ensures the headers are emitted on error responses (4xx/5xx) too. add_header X-Content-Type-Options "nosniff" always;