简体   繁体   中英

Website hosted on Amazon EC2 instance not accessible from outside

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 ?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM