Can't browse to my EC2 Instance [closed]

泪湿孤枕 提交于 2019-11-30 05:05:41

You must config the firewall to open the HTTP port.

To be more specific, for AWS this is done via Security Groups. You should create one with the ports you need opened. In most cases that's the por 80 for TCP.

You can see how to achieve this on the documentation http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html

  • First identify the security group of the Ec2 instance.
    • Next click on the security groups link in the bottom left nav.
    • Select the security group under which this EC2 instance lies, and add Inbound rules by specifying the port or a custom port range.

For those of you using Centos (and perhaps other linux distibutions), you need to make sure that its FW (iptables) allows for port 80 or any other port you want.

See here on how to completely disable it (for testing purposes only!). And here for specific rules

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!