Tuesday, April 3, 2012

Reverse Proxy Setup Encountered Permission Issue

Today when I setup reverse proxy for my Apache server, the reverse proxy refused to work. So I went to check on the log files and found out the following error:

Permission denied: proxy: HTTP: attempt to connect to

Seems like the Linux security prevented HTTPD process to connect to the network.

In order to solve this issue, just run the following command.

/usr/sbin/setsebool -P httpd_can_network_connect true

Alternatively, you can also set the security settings, Go to Security Level configurations and Change Tab to SELinux. And modify SELinux policy Check "Allow HTTPD scripts and modules to connect to the network" under HTTPD service.