Apache on CentOS
-
I setup apache in CentOS on virtual box. Apache answers on port 80 but if I change the port and restart Apache it no longer answers. Any ideas?
-
@alex.olynyk said:
I setup apache in CentOS on virtual box. Apache answers on port 80 but if I change the port and restart Apache it no longer answers. Any ideas?
Likely your firewall is closed on other ports. You would not expect the firewall to be open elsewhere by default. If you did not open it, I would guess that it is closed.
-
Assuming you are only dealing with firewall, use this. Where YOURPORT is the port number you are using.
firewall-cmd --zone=public --add-port=YOURPORT/tcp --permanent firewall-cmd --reload
Depending on what SELinux thinks of the port you may also have to allow it there.
-
My post on setting up Nginx as a reverse proxy details adding ports to SELinux, as well as what ports it already listens on.
http://mangolassi.it/topic/6905/setting-up-nginx-on-centos-7-as-a-reverse-proxy
-
Thank you very much. Its working now.