Files
ndsolutionswebsite/default.conf
DanielS ec42fbe520
All checks were successful
Production Build & Deploy / build-and-deploy (push) Successful in 26s
fix: disable absolute redirects in Nginx to fix port redirects
2026-07-07 00:55:00 +02:00

21 lines
458 B
Plaintext

server {
listen 8080;
server_name localhost;
# Erzwingt relative Redirects (z.B. Location: /templates/ statt http://...:8080/templates/)
absolute_redirect off;
port_in_redirect off;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ =404;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
internal;
}
}