标签:for inf php文件 config server ssi get denied bsp
nginx 报错: 1389#1389: *40 "/home/data1/index.html" is forbidden (13: Permission denied), client: 192.168.10.145, server: localo, request: "GET / HTTP/1.1", host: "192.168.10.145"
1.nginx 部署前期一定要关闭selinux
临时关闭
setenforce 0
永久关闭
sed -i "s\SELINUX=enforcing\SELINUX=disabled\g" /etc/sysconfig/selinux
2.权限问题,如果nginx没有web目录的操作权限,也会出现403错误
3.缺少index.html或者index.php文件,就是配置文件中index index.html index.htm这行中的指定的文件。
标签:for inf php文件 config server ssi get denied bsp
原文地址:https://www.cnblogs.com/zoulixiang/p/9208265.html