diff --git a/nginx.conf b/nginx.conf index 802f872c4521fc88a4050e0a3056587867b0075b..8903350dcaf87e7d972d8e6be50c466b0e4a7f8e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,10 +1,16 @@ server_tokens off; server { - listen 8080; - server_name localhost; - location / { - root /usr/share/nginx/html; - index index.html index.htm; + listen 8080; + server_name localhost; + location /wiki { + root /usr/share/nginx/html; + index index.html index.htm; try_files $uri /index.html; } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } + } \ No newline at end of file