将Nginx配置改成下面形式,亲,测可行
server {
listen 80;
server_name localhost;
index index.html;
root /root/dist;
location / {
root /root/dist;
try_files $uri $uri/ /index.html =404;
}
}
将Nginx配置改成下面形式,亲,测可行
server {
listen 80;
server_name localhost;
index index.html;
root /root/dist;
location / {
root /root/dist;
try_files $uri $uri/ /index.html =404;
}
}
本文标题:vue打包之后,在Nginx访问,history模式
本文链接:https://www.haomeiwen.com/subject/troygftx.html
网友评论