diff --git a/nginx.conf b/nginx.conf
index 3238d3373f2aa77b2ee917cf623f8105164ccbe1..2c158a58df16fe84766e1e189c68e6f7f4cdbfb7 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