Tran Nghi's Site  - Make notes and share experience

13: Permission denied while connecting to upstream

This post is also available in: English

While trying to setup Nginx reverse proxy for Jenkins upstream, I faced to this issue:

___n[crit] ___ connect() to failed (13: Permission denied) while connecting to upstream, client: ___n, server: ___, request: “GET / HTTP/1.1”, upstream: “”, host: “___”, referrer: “https://___/”

This issue has been solved with:

setsebool -P httpd_can_network_connect 1


Reference: Stack Overflow’s link