SELinux httpd enable

This commit is contained in:
Price Hiller 2021-08-17 20:37:09 -05:00
parent 84a74edd9e
commit 6da3032d9f

View File

@ -114,6 +114,9 @@ firewall-cmd --reload
log "info" "Installing nginx"
dnf -y install nginx
log "info" "Setting SELinux for httpd_can_network_connect to 1, this avoids 502 errors for nginx"
setsebool -P httpd_can_network_connect 1
log "info" "Enabling nginx at startup and starting nginx"
systemctl enable nginx
systemctl start nginx