Mike Johnson Jr
Mike Johnson Jr

Reputation: 796

Amazon aws Ec2 instance: Connection refused (by browser). Used to work

As the title says, I am getting connection refused by my browser.

Nginx is running with

sudo service nginx start

This used to start and used to show the nginx start page

My AWS EC2 Security group settings allow connections on port 80, 22, and 443. Please help, thank you

Upvotes: 0

Views: 960

Answers (1)

Mike Johnson Jr
Mike Johnson Jr

Reputation: 796

My configuration files did not pass the

sudo nginx -t

test. If you are having this problem, run the command above to see if your configuration files pass that test. I had duplicate error log locations

Upvotes: 2

Related Questions