I have just realised that as a default configuration, selinux does not allow to show the content of the http home directory on CentOS. In order to solve this problem, please use the following command.
setsebool -P httpd_enable_homedirs true
You can update the selinux config file (/etc/selinux/config ) so that the rule is automatically applied in every system boot.
SELINUX=enforcing
SELINUXTYPE=targeted
setsebool -P httpd_enable_homedirs true
Cheers
No comments:
Post a Comment