Apache proxy not working for a localhost port
Solution 1:
I solved my issue :
If I do: sestatus -b | grep httpd
I can see httpd_can_network_connect
is off
The solution is to type: togglesebool httpd_can_network_connect
Solution 2:
Here is the solution for your problem:
To turn on this boolean you simple have to use this line (root permissions)
setsebool -P httpd_can_network_connect on
or
sudo setsebool -P httpd_can_network_connect on
Hope that helps. Reference see here: https://wiki.centos.org/TipsAndTricks/SelinuxBooleans