From 6da3032d9fd6b7cfe48269217b2cf25afece0072 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 17 Aug 2021 20:37:09 -0500 Subject: [PATCH] SELinux httpd enable --- CentOS/Install-LEMP-Stack.bash | 3 +++ 1 file changed, 3 insertions(+) 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