selinux允许nginx反向代理

查询nginx是否被selinux阻挡

sudo cat /var/log/audit/audit.log | grep nginx | grep denied

添加规则

sudo cat /var/log/audit/audit.log | grep nginx | grep denied | audit2allow -M mynginx
sudo semodule -i mynginx.pp