From a6a6a76fbd3c09b5caa5fd9819859255d98e58ce Mon Sep 17 00:00:00 2001 From: Josh Chorlton Date: Sun, 17 Mar 2024 13:39:56 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20403=20errors=20when=20the?= =?UTF-8?q?=20url=20points=20to=20a=20directory=20without=20an=20index.htm?= =?UTF-8?q?l=20(#5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nginx.conf b/nginx.conf index ed11d3a..ba4d9aa 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,11 +1,11 @@ server { listen 80; - + location / { root /usr/share/nginx/html; index index.html index.htm; - try_files $uri $uri/ /index.html =404; + try_files $uri /index.html =404; } - + include /etc/nginx/extra-conf.d/*.conf; }