Difference between httpd_sys_content_t httpd_user_content_t
httpd_sys_content_t
type is default for /var/www/html
and if you wish to put your website in your home directory, you can change your file and directory to the type of httpd_sys_content_t
for the httpd
works.
But it is not recommended, the best way is to change them to the type of httpd_user_content_t
. And then set SELinux boolean value with:
setsebool httpd_enable_homedirs on
So that, the type httpd_user_content_t
can work fine in your home directory.