美文网首页
反向代理时upstream错误

反向代理时upstream错误

作者: 斯文的七_f35e | 来源:发表于2019-01-03 11:31 被阅读0次

    反向代理报错如下:
    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)

    参考文档:http://blog.chinaunix.net/uid-26727991-id-3235275.html

    相关文章

      网友评论

          本文标题:反向代理时upstream错误

          本文链接:https://www.haomeiwen.com/subject/bzcfrqtx.html