宝塔配置基于thinkphp使用Uniapp开发的h5端的伪静态规则配置
代码如下:location ~* (runtime|application)/{
return 403;
}
location / {
if (!-e $request_filename){
rewrite^(.*)$/index.php?s=$1last; break;
}
}
location /h5 {
root/data/sn.51digit.com/public/h5;
try_files $uri $uri/ /index.html last;
}
页:
[1]