Opening port 80 EC2 Amazon web services [closed]

2019-01-03 01:33发布

I've opened port 80 in the web console on my E2C instance's security group but I still can't access it via the public dns in the browser.

Any ideas?

4条回答
等我变得足够好
2楼-- · 2019-01-03 01:53

This is actually really easy:

  • Go to the "Network & Security" -> Security Group settings in the left hand navigation
  • Find the Security Group that your instance is apart of
  • Click on Inbound Rules
  • Use the drop down and add HTTP (port 80)
  • Click Apply and enjoy
查看更多
可以哭但决不认输i
3楼-- · 2019-01-03 01:55

Some quick tips:

  1. Disable the inbuilt firewall on your Windows instances.
  2. Use the IP address rather than the DNS entry.
  3. Create a security group for tcp ports 1 to 65000 and for source 0.0.0.0/0. It's obviously not to be used for production purposes, but it will help avoid the Security Groups as a source of problems.
  4. Check that you can actually ping your server. This may also necessitate some Security Group modification.
查看更多
爷、活的狠高调
4楼-- · 2019-01-03 02:05

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

查看更多
叛逆
5楼-- · 2019-01-03 02:08
  1. Check what security group you are using for your instance. See value of Security Groups column in row of your instance. It's important - I changed rules for default group, but my instance was under quickstart-1 group when I had similar issue.
  2. Go to Security Groups tab, go to Inbound tab, select HTTP in Create a new rule combo-box, leave 0.0.0.0/0 in source field and click Add Rule, then Apply rule changes.
查看更多
登录 后发表回答