skip to Main Content

I have deployed a EC2 Micro Instance on AWS and installed Apache on it, overall rather basic I have to admit to my shame. Once started I am not able to get to the Apache Test Page via the public DNS of the EC2.

I have added (at least I think) the appropriate security group for the inbound traffic.

HTTP     TCP    80    0.0.0.0/0

I have checked the httpd.conf file and checked if apache is listening on Port 80, which it is

[ec2-user@xxx httpd]$ sudo service httpd status
httpd (pid  12079) is running...

After trying to reach the webserver through the AWS Public DNS (IPv4), I just receive a TimeOut

2

Answers


  1. Chosen as BEST ANSWER

    Not my brightest moment.

    While the security group was configured correctly, I accidentally applied the wrong one to the instance ... so effectively I did not forward the traffic to the port accordingly.

    Sorry for wasting your time !


  2. You most likely need to assign a public IPv4 address. You can follow these steps based on if you need a permanent or temporary one

    Auto-Assigning Public IPv4 Address (Temporary IPv4 Address)
    (instructions here). This normal type of public IP will be changed upon every EC2 stop or termination, so if you want a permanent public IP, you would need to make an Elastic IP.

    Elastic IPv4 (Permanent IPv4 Address)
    (instructions here). Do keep in mind that Elastic IP’s have requirements that need to be met in order to remain free (requirements here)

    To get your public IPv4 for your EC2 instance afterward, you would:

    1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
    2. In the navigation pane, choose Instances.
    3. Select your instance. In the details pane, get the public IP address from the IPv4 Public IP field, and get the external DNS hostname from the Public DNS (IPv4) field.
    4. If one or more Elastic IP addresses have been associated with the instance, get the Elastic IP addresses from the Elastic IPs field.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search