From b5d832a6e8609c66f7b6c9681724d9e764760224 Mon Sep 17 00:00:00 2001 From: Kyllian Chabanon Date: Fri, 4 Apr 2025 16:17:13 +0200 Subject: [PATCH] Modification nginx.conf --- nginx.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index e2e9700..c352b77 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,9 +1,14 @@ server { listen 80; + server_name _; + root /usr/share/nginx/html; location /containers/kyllianchabanon-portfolio { alias /usr/share/nginx/html; - try_files $uri $uri/ /containers/kyllianchabanon-portfolio/index.html; - index index.html; + try_files $uri $uri/ /index.html; + } + + location / { + try_files $uri $uri/ /index.html; } } \ No newline at end of file