location / {
        root   /usr/share/nginx/html/;
        index  index.html index.htm;
        try_files $uri $uri/ @router;
        index index.html;
    }
    location @router {
        rewrite ^.*$ /index.html last;
        }
Last modification:June 6th, 2019 at 04:13 pm
如果觉得我的文章对你有用,请随意赞赏