The reason I ask is I thought I would set up up an web server using virtual hosts (home/userdir) with selinux disabled and then enable selinux to try to learn how make it work. I have tried this twice and both times the server would not restart httpd after setting selinux to enforceing and applying the rules to allow httpd/vhosts (assuming I did it right).
Would setting up the httpd/vhosts and getting everything working with selinux set to permissive be the same as doing it with selinux disabled?
Secondarily, is it safe to use the following?
Code: Select all
sudo setsebool -P httpd_enable_homedirs true
sudo setsebool -P httpd_unified 1