nginx front-end deployment vue, refresh appeared 404 or 500 error solution

Plus in the server nginx configuration file

try_files $uri $uri/ /index.html;

Without words is 404, 500 is the wrong path, the path here as long as the shining /index.html on the line, do not add a specific deployment location

Guess you like

Origin www.cnblogs.com/zxcoder/p/12076181.html