SELinux httpd enable
This commit is contained in:
parent
84a74edd9e
commit
6da3032d9f
@ -114,6 +114,9 @@ firewall-cmd --reload
|
|||||||
log "info" "Installing nginx"
|
log "info" "Installing nginx"
|
||||||
dnf -y install 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"
|
log "info" "Enabling nginx at startup and starting nginx"
|
||||||
systemctl enable nginx
|
systemctl enable nginx
|
||||||
systemctl start nginx
|
systemctl start nginx
|
||||||
|
Loading…
Reference in New Issue
Block a user