简体   繁体   中英

ec2 not accepting inbound traffic

So, I've gone through multiple SO threads, but I'm unable to do it.

I launched an ec2 instance and installed ubuntu18.04 to it. I installed nginx on top of it.

Now I'm trying to browse my server IP via browser, but it shows it can't be reached . I tried wget localhost on shell and it downloads a file with content If you see this page, the nginx web server is successfully installed and working. Further configuration is required. If you see this page, the nginx web server is successfully installed and working. Further configuration is required. , which means nginx is working fine.

Now, I edited my Security group config associated with the instance as follow:-

Inbound Settings

在此处输入图片说明

Outbound Settings

在此处输入图片说明

But, it's still not working. What am I missing?

  • Can you please check internal firewall on your instance, it is enabled or not. If not try to disable it and see.

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-16-04

  • Secondly, have you installed any webserver on EC2, otherwise it may not be able to find anything on localhost. There should be a webserver to listen to request on port 80.

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