安装环境 宝塔面板 php 7.4 mysql 5.7


关闭跨站攻击 



1.创建网站PHP7.4 自定义mysql数据库名称


2.上传源文件到宝塔站点目录里,解压出来;


2.然后进入网站安装完成 之后一定要设置伪静态 源码里面nginx.txt 就是伪静态 然后复制粘贴到伪静态里面保存即可


伪静态:

location / {
 if (!-e $request_filename) {
   rewrite ^/(.[a-zA-Z0-9\-\_]+).html$ /index.php?mod=$1 last;
 }
 rewrite ^/pay/(.*)$ /pay.php?s=$1 last;
}
location ^~ /plugins {
  deny all;
}
location ^~ /includes {
  deny all;
}

点赞(1) 打赏
立即
投稿
返回
顶部