apache not accepting incoming connections from outside of localhost

前端 未结 11 1046
逝去的感伤
逝去的感伤 2020-12-04 05:59

I\'ve booted up a CentOS server on rackspace and executed yum install httpd\'d. Then services httpd start. So, just the barebones.

I can ac

11条回答
  •  孤街浪徒
    2020-12-04 06:57

    If you are using RHEL/CentOS 7 (the OP was not, but I thought I'd share the solution for my case), then you will need to use firewalld instead of the iptables service mentioned in other answers.

    firewall-cmd --zone=public --add-port=80/tcp --permanent
    firewall-cmd --reload
    

    And then check that it is running with:

    firewall-cmd --permanent --zone=public --list-all
    

    It should list 80/tcp under ports

提交回复
热议问题