Skip to content
Snippets Groups Projects
Commit 2daae927 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

change nginx conf

parent 98654402
No related branches found
No related tags found
1 merge request!7K8s deploy
Pipeline #111448 canceled
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
...@@ -2,7 +2,7 @@ server_tokens off; ...@@ -2,7 +2,7 @@ server_tokens off;
server { server {
listen 8080; listen 8080;
server_name localhost; server_name localhost;
location /wiki { location ^~/wiki {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html index.htm; index index.html index.htm;
try_files $uri /index.html; try_files $uri /index.html;
...@@ -11,12 +11,12 @@ server { ...@@ -11,12 +11,12 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true; proxy_set_header X-NginX-Proxy true;
rewrite ^/wiki/(.*)$ /$1 break; rewrite ^/wiki/(.*)$ /$1 break;
proxy_pass http://wiki; proxy_pass http://localhost;
} }
error_page 500 502 503 504 /50x.html; # error_page 500 502 503 504 /50x.html;
location = /50x.html { # location = /50x.html {
root /usr/share/nginx/html; # root /usr/share/nginx/html;
} # }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment