fix: disable port in redirect for Nginx in Docker container
All checks were successful
Production Build & Deploy / build-and-deploy (push) Successful in 26s
All checks were successful
Production Build & Deploy / build-and-deploy (push) Successful in 26s
This commit is contained in:
19
default.conf
Normal file
19
default.conf
Normal file
@@ -0,0 +1,19 @@
|
||||
server {
|
||||
listen 8080;
|
||||
server_name localhost;
|
||||
|
||||
# Verhindert, dass Nginx bei 301-Redirects (z.B. ohne Slash) den internen Port 8080 anhängt
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user