diff --git a/nginx.conf b/nginx.conf index 232a12a9f37ca587d609cf2fca46547a9d57f1b7..535c6e0da8e35279e57dc9f9452897c34ac9f0ee 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