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 127.0.0.1:8080 failed (13: Permission denied) while connecting to upstream, client: ___n, server: ___, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:8080/”, host: “___”, referrer: “https://___/”

This issue has been solved with:

setsebool -P httpd_can_network_connect 1

 

Reference: Stack Overflow’s link

 

Message