vue history模式 nginx配置

vue history模式 nginx配置

wap为history路径

    location /wap {
        try_files $uri $uri/  @router;
        index index.html index.htm;
    }
    
    location @router {
        rewrite ^.*$ /wap/index.html last;
    }

你可能感兴趣的:(history,vue,history,NGINX配置,nginx,vue)