diff --git a/nginx.conf b/nginx.conf index 71974e8..1e86f9b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -8,11 +8,11 @@ server { root /data; index index.html; + location / { + try_files $uri $uri/ /index.html; + } + location ^~ $$prefix$$/ { alias /data/; } - - location / { - try_files $uri $uri/ /index.html; - } }