vue部署到nginx服务下,非根目录,刷新页面404怎么解决?
nginx配置
location / {
proxy_pass http://xxxx;
}
location /category {
root /home/tv;
index index.html;
try_files $uri $uri/ /index.html;
}