Reputation: 561
I have a running(Windows OS) Amazon EC2 instance. Just to check whether, I can host a website and access it from outside, I created a index.html file with the message 'Hello World!!', and hosted it using http-server on port 80. I can access this website using localhost. However, I am not able to access the website from my personal laptop. I am using Public DNS to access the website, I have also tried with public ip.
In security group, I have opened inbound traffic for HTTP & HTTPS both for all IPs. I can ping this instance from my laptop using the public DNS. I am not sure, what else is missing ?
Upvotes: 0
Views: 2988
Reputation: 13632
I would open all traffic to all IPs, clear your DNS cache, and make 100% sure that your security group is assigned to the correct instance.
Once you get that to work, then reduce it back down to http/s only.
If you are in a VPC, then then check your access control lists. Is the subnet a public subnet?
Check your Windows Firewall settings. This can be overlooked.
Upvotes: 2