From 2cf79264f87e5b83f2d83a0ae3606dfa64b7211d Mon Sep 17 00:00:00 2001 From: Cedric Rische Date: Thu, 15 Feb 2024 01:06:55 +0100 Subject: [PATCH] Fixed nginx config --- nginx/nginx.conf | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 1f6bd47..5d36b9a 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,12 +1,11 @@ server { listen 80; - location / { root /usr/share/nginx/html; - index index.html index.htm; - try_files $uri $uri/ /index.html; - } - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } + index index.html; + + error_page 404 /404.html; + + location / { + try_files $uri $uri/ $uri.html =404; + } }