From 2daae92737f321e5716f3fe6ae86e1ecc9150ba4 Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Wed, 20 Sep 2023 11:04:09 +0200 Subject: [PATCH] change nginx conf --- nginx.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nginx.conf b/nginx.conf index 3238d337..2c158a58 100644 --- a/nginx.conf +++ b/nginx.conf @@ -2,7 +2,7 @@ server_tokens off; server { listen 8080; server_name localhost; - location /wiki { + location ^~/wiki { root /usr/share/nginx/html; index index.html index.htm; try_files $uri /index.html; @@ -11,12 +11,12 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-NginX-Proxy true; rewrite ^/wiki/(.*)$ /$1 break; - proxy_pass http://wiki; + proxy_pass http://localhost; } - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } + # error_page 500 502 503 504 /50x.html; + # location = /50x.html { + # root /usr/share/nginx/html; + # } } \ No newline at end of file -- GitLab