Nginx Bind Error

Rockyuk

Verified User
Joined
Aug 3, 2020
Messages
58
Hi Everyone,
I have a strange issue here for some reason Nginx has stopped building or restarting etc. It is coming back with nginx: [emerg] bind() to Server IP Address:80 failed (99: Cannot assign requested address).

So, if I goto /etc/nginx/nginx-vhosts.conf I find these two options

[::1]:80

[::1]:443

If I change them to

*:80

*:443

Everything starts working again, but if I restart the server or nginx by itself the nginx-vhosts.conf reverts back to

[::1]:80

[::1]:443

Is there a way I can configure it to stay permanently like this?


*:80

*:443

Thanks

Rockyuk
 
Back
Top