How do I get my EC2/RHEL to be accessible via a browser?

jackreichert asked:

I’ve set up an instance on EC2 of RHEL (I also tried the same with a CentOS AMI) and cannot seem to connect via my browser.

I can SSH in.

But when I put the IP into my browser I can’t connect.

I tried adding to the default Security Group Http. I tried adding Http to the new Security Group created when the instance was created, and I tried creating a new group as well…

I feel like I’m missing something simple, but can’t seem to find any references to what it might be anywhere.

EDIT
Currently I have 3 security groups:

  • quicklaunch-1:
    TCP
    22 (SSH) 0.0.0.0/0,
    80 (HTTP) 0.0.0.0/0,
    443 (HTTPS) 0.0.0.0/0
  • default:
    ICMP
    ALL sg-8adf34e1 (default)
    TCP
    0 – 65535 sg-8adf34e1 (default),
    80 (HTTP) 0.0.0.0/0,
    443 (HTTPS) 0.0.0.0/0
    UDP
    0 – 65535 sg-8adf34e1 (default)
  • Web:
    ICMP
    Echo Reply 0.0.0.0/0,
    TCP
    0 – 65535 0.0.0.0/0,
    22 (SSH) 0.0.0.0/0,
    80 (HTTP) 0.0.0.0/0,
    443 (HTTPS) 0.0.0.0/0
    UDP
    0 – 65535 0.0.0.0/0,
    53 (DNS) 0.0.0.0/0

I’ve tried with several different variations… same exact response.

My answer:


In addition to the EC2 security group, your port 80 also needs to be opened in the CentOS firewall. You can use system-config-firewall-tui to do this from the root shell by selecting its Customize option.

system-config-firewall-tui


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.