location /app { root /var/share/www/static/; try_files /index.html =404; } location /assets { root /var/share/www/static/; } location / { return 301 https://$http_host/app; }