If, for instance, you are serving the internet stuff at /srv/stuff/TehInternetz instead of (or in addition to) the default /var/www, and selinux is preventing Apache/NGINX from accessing the files, run the following:

dnf install policycoreutils-python-utils || yum install policycoreutils-python || apt install semanage-utils
semanage fcontext -a -e /var/www /srv/stuff/TehInternetz
restorecon -R -v /srv/stuff/TehInternetz

Leave a Reply

Your email address will not be published. Required fields are marked *

Warning: This site uses Akismet to filter spam. Until or unless I can find a suitable replacement anti-spam solution, this means that (per their indemnification document) all commenters' IP addresses will be sent to Automattic, Inc., who may choose to share such with 3rd parties.
If this is unacceptable to you, I highly recommend using an anonymous proxy or public Wi-Fi connection when commenting.