Looks like it's this one.
But isn't that exactly same way like this one?
Code: Select all
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html(/.*)?'
restorecon -R /var/www/html
I think labeling "httpd_sys_rw_content_t" to certain folders/files (like "cache", "uploads" folder) is safer... than "httpd_sys_content_t" having write permissions set by SELinux custom module which means it's all files/folders in /var/www/html