From 17cd36bb5f9d83e3c3f9663d34c5aecd2c6056be Mon Sep 17 00:00:00 2001
From: Remi  PLANEL <rplanel@pasteur.fr>
Date: Wed, 20 Sep 2023 13:18:27 +0200
Subject: [PATCH] WIP: should use alias ?

---
 nginx.conf | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nginx.conf b/nginx.conf
index 232a12a9..535c6e0d 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -2,14 +2,14 @@ server_tokens off;
 server {
     listen 8080;
     server_name localhost;
-    location ^~/wiki/ {
-        root /etc/nginx/html/;
+    location /wiki/ {
+        alias /etc/nginx/html/;
         index index.html index.htm;
 
     }
     error_page 500 502 503 504 /50x.html;
     location = /50x.html {
-        root /etc/nginx/html/;
+        alias /etc/nginx/html/;
     }
 
 }
\ No newline at end of file
-- 
GitLab