希望访问的地址是这样的:
http://www.baozi.com/share/ab...
http://www.baozi.com/share/ds...
http://www.baozi.com/share/ff...
三层路径的话会随机生成字符串,项目在dist目录下,
location / {
root /breader_task_h5/dist;
index index.html index.htm review.html;
}
location ~ /share/.* {
alias /breader_task_h5/dist/;
}
这种的nginx需要怎么配置,目前我上面配置是不对的,
已经解决了。