By default, firewalld
blocks access to the ports used by the web server.
To configure firewalld
to allow http
access, run the following command(s):
firewall-cmd --permanent --add-service=http
Then run the following command to load the newly created rule(s):
firewall-cmd --reload
To configure firewalld
to allow https
access, run the following command(s):
firewall-cmd --permanent --add-service=https
Then run the following command to load the newly created rule(s):
firewall-cmd --reload