Modifying SELinux Settings for Full Nginx Functionality

Temporarily Disabling SELinux for Nginx:

# semanage permissive -a httpd_t

so that systemctl start nginx like normally before. Or just try:

# nginx -c /etc/nginx/nginx.conf

when it complains:

nginx: [emerg] open() "/etc/nginx/conf.d/www.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:29

which I had met 2 times. More details, see:

Leave a comment

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