Apache Mod_proxy '[Error] (13)Permission Denied' Error on RHEL

Apache Mod_proxy '[Error] (13)Permission Denied' Error on RHEL

I go above error when I have installed Apache web server and setup virtual host on CentOS 7.
[error] (13)Permission denied: proxy: AJP: attempt to connect to 10.x.x.x:9002 (host.domain.com) failed
By looking at error, I started seaching for permission issue and how to resolve it. But finally, I came across a blog which also mentioned the same issue. With help of it, I came to know this is because of SELinux, which ship by default with CentOS. Due to that httpd processes can't make an outbound connection.



This command helps me to fix it.
/usr/sbin/setsebool httpd_can_network_connect 1

Once my system rebooted, I again get into the same issue. The reason behind above command has not persisted the changes. To make it persist you need to pass -p
/usr/sbin/setsebool -P httpd_can_network_connect 1


Author Image

Ankitkumar Patel

Sr. SAP Hybris consultant, having 6+ years experience in Hybris, Java, J2EE. Extensive hands-on experience in SAP Hybris development, third-party integrations with Hybris, project architecture and design... Read more

Comments

Popular posts from this blog

Hybris flexible search query examples

How to remove or update all data records in Hybris?

Hybris backoffice customization