Deleting an IP makes nginx fail to restart

I wanted to delete an IP today, and found a bug. (I posted it on git)
This IP’s history was so bad, that I don’t want to be associated with it.
(I know. I should have checked the IP history before I assign it to a working server. :slight_smile: )

After deleting the x.x.x.x IP address, nginx fails to restart.
The file /etc/nginx/conf.d/x.x.x.x.conf remained, and nginx fails on listen to this IP with error:
nginx: [emerg] bind() to x.x.x.x:80 failed (99: Cannot assign requested address)

To Reproduce:
add a new IP x.x.x.x
(check if /etc/nginx/conf.d/x.x.x.x.conf is created)
delete IP

Expected behavior:
nginx IP config should be removed from /etc/nginx/conf.d/ also

Operating system: Ubuntu 20.04 LTS
Hestia Control Panel version:. 1.4.10

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.