Categories
Workflow

Nginx fails after reboot

I later discovered…

I’d previously pointed a real domain to localhost for local dev. Nginx started at that time. I later changed hosts file and removed that connection. That caused Nginx to do a DNS lookup, and then fail to bind to the IP and refuse to start.

Once I removed that site from nginx/servers I was sweet!


Somewhere it’s trying to bind to a specific local network IP. If I’m at Wotso that failed and I started towards config debugging hell.

Restarted at home and it was ok. That’s a terrible setup, but it worked around it for now.

nginx needs to be started with sudo in order to listen on port 80.