Site cannot be reached with Nginx ,Gunicorn , django on aws ec2

Viewed 152

I have followed this tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04 to setup my Django app on ec2 but it is not accessible. When I hit the url it says that site cannot be reached. I did ssh to my ec2 instance and uses the curl command it shows me the html page but without it says connection cannot be established curl output:

enter image description here

Security Groups are also configured with port 80 and 443: enter image description here

Also I set firewall to 'Nginx Full' - local firewall configuration: enter image description here

When I run the command sudo systemctl status gunicorn.socket it shows: enter image description here

The command sudo systemctl status gunicorn shows: enter image description here

Also the command sudo systemctl status nginx shows: enter image description here

0 Answers
Related