thinkphp5开发后端,前端用vue.js开发前端,前端打包的时候用的是history的模式;
把前端代码放到public文件夹下,刷新就报404的错误!文章源自菜鸟学院-https://www.cainiaoxueyuan.com/bc/24907.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/bc/24907.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/bc/24907.html
nginx配置文件文章源自菜鸟学院-https://www.cainiaoxueyuan.com/bc/24907.html
location / {
root E:/www/doctorLink/public;
index index.php index.html index.htm;
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/bc/24907.html