diff --git a/default.conf b/default.conf index 6ceb3f6..74145cc 100644 --- a/default.conf +++ b/default.conf @@ -2,7 +2,8 @@ server { listen 8080; server_name localhost; - # Verhindert, dass Nginx bei 301-Redirects (z.B. ohne Slash) den internen Port 8080 anhängt + # Erzwingt relative Redirects (z.B. Location: /templates/ statt http://...:8080/templates/) + absolute_redirect off; port_in_redirect off; location / {