diff --git a/CentOS/Install-LEMP-Stack.bash b/CentOS/Install-LEMP-Stack.bash index f6de7dd..6f9538c 100755 --- a/CentOS/Install-LEMP-Stack.bash +++ b/CentOS/Install-LEMP-Stack.bash @@ -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