Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29243

Can't access Public IPv4 address after creating EC2 instance and installing Nginx

$
0
0

I created a t3.micro EC2 instance on AWS and after installing and starting nginx, when I try to go to the Public IPv4 address in the browser, I get this message 'This site can’t be reached'.

List of commands used after logging SSH in my EC2 instance:

  1. sudo apt-get update
  2. sudo apt-get install nginx
  3. sudo systemctl start nginx

This is what my security group looks like:enter image description here

Nginx status:

 nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2024-01-22 13:40:54 UTC; 1s ago   Docs: man:nginx(8)Process: 828 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status>Process: 829 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCES>Main PID: 831 (nginx)  Tasks: 3 (limit: 1091) Memory: 3.3M    CPU: 25ms CGroup: /system.slice/nginx.service├─831 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"├─832 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "">└─833 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "">

What am I missing?


Viewing all articles
Browse latest Browse all 29243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>