From ed100ee9e5ff2c3e50c10d0328618e0eb16eb5cf Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Thu, 18 Aug 2022 17:08:03 +0100 Subject: [PATCH] Added server directive for root folder --- nginx/conf.d/ref-test-app.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx/conf.d/ref-test-app.conf b/nginx/conf.d/ref-test-app.conf index 73b9b85..d278a3b 100644 --- a/nginx/conf.d/ref-test-app.conf +++ b/nginx/conf.d/ref-test-app.conf @@ -20,6 +20,11 @@ server { include /etc/nginx/certbot-challenge.conf; # Define locations for static files to be served by Nginx + location ^~ /root/ { + include /etc/nginx/mime.types; + alias /usr/share/nginx/html/root/; + } + location ^~ /quiz/static/ { include /etc/nginx/mime.types; alias /usr/share/nginx/html/quiz/static/;