Nginx spa(vue) sub-path routing
问题 I want something like this: example.com/anything (public site) example.com/app/ (vue app) example.com/api/ (backend API) So, I there is a folder on Ubuntu server "/srv/root" with static index.html(public site) and "app" folder with vue app: 1. For backend API I just need redirect to local port: location /api/ { proxy_pass http://localhost:5000/api/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; proxy_set_header Host $host; proxy_cache