Thinkphp和Vue在一个域名下
nginx 伪静态配置
location ~* (runtime|application)/{
return 403;
}
location /*.php {
if (!-e $request_filename) {
rewrite ^(.*)$ /NocwlBxqtv.php?s=$1 last;
}
}
location /api {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
location / {
try_files $uri $uri/ /index.html;
}版权声明: 本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 ABin!
