ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Apache on CentOS

    IT Discussion
    3
    5
    476
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • alex.olynyk
      alex.olynyk last edited by

      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?

      scottalanmiller 1 Reply Last reply Reply Quote 1
      • scottalanmiller
        scottalanmiller @alex.olynyk last edited by

        @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.

        1 Reply Last reply Reply Quote 2
        • JaredBusch
          JaredBusch last edited by

          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.

          1 Reply Last reply Reply Quote 1
          • JaredBusch
            JaredBusch last edited by

            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

            1 Reply Last reply Reply Quote 1
            • alex.olynyk
              alex.olynyk last edited by

              Thank you very much. Its working now.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post