diff --git a/nginx/nginx.conf b/nginx/nginx.conf index c5ec8cf7..82e87607 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -8,7 +8,7 @@ server { location / { root /var/www/html; - try_files $uri $uri/ /index.html; + try_files $uri /index.html; } location /v1/ { @@ -26,10 +26,15 @@ server { proxy_redirect off; } + location = /admin { + absolute_redirect off; + return 301 /admin/; + } + location /static/ { autoindex on; alias /static/; } } -server_tokens off; \ No newline at end of file +server_tokens off;