location =/ { rewrite index.html permanent; try_files $uri $uri/ /index.html; } 转载于:https://www.cnblogs.com/jackjo/p/9707034.html