宝塔部署项目
2021-11-04 本文已影响0人
xueyueshuai
1 添加站点
2 域名指向
3 伪静态
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
4 网站目录-运行目录
5 网站目录-防跨站攻击(open_basedir)
6 chmod -R 777 dirNam
7 因为chmod 会编辑文件的权限 所以要 git push 到仓库