反向代理报错如下:
2019/01/03 10:49:45 [crit] 7942#7942: *15 connect() to 192.168.1.103:8090 failed (13: Permission denied) while connecting to upstream, client: 192.168.1.101, server: www.ink.com, request: "GET /confluence HTTP/1.1", upstream: "http://192.168.1.103:8090/", host: "192.168.1.101"
检查selinux日志
cat /var/log/audit/audit.log | grep nginx|grep denied
永久修改:
setsebool -P httpd_can_network_connect 1
(httpd s are allowed to connect out to the network)
网友评论