For Apache to be able to read the file, the file needs to have SELinux context something like "system_u:object_r:httpd_sys_content_t:s
To find out the current SELinux context of files, "ls -alZ"
To change the SELinux context of a file:
chcon <Context> <File>
e.g. chcon system_u:object_r:httpd_sys_conten
No comments:
Post a Comment