If you create a file in your home directory it is given the SELinux security type user_home_t and move it into your public_html directory, this type does not change and forbids you from accessing the file via HTML. You need to change the type of file using chcon to httpd_user_content_t in order for it to be accessed.
If you create a file in your home directory it is given the SELinux security type
user_home_t
and move it into your public_html directory, this type does not change and forbids you from accessing the file via HTML. You need to change the type of file usingchcon
tohttpd_user_content_t
in order for it to be accessed.