Nginx won’t start after server ip change

centos6.5nginx

I have a centos server with nginx running on it.
The server ip recently changed and nginx no longer starts up

it gives the following error message where 123.123.123.123. is the old ip address of the server

Starting nginx: nginx: [emerg] bind() to 123.123.123.123:80 failed (99: Cannot assign requested address)

Where is it reading the old IP address from?

Best Answer

Yes, paths to check seems to be:

/etc/nginx/conf.d/

/etc/nginx/sites-available/

Maybe the Nginx configuration files are also in different directory. I had these in /home/admin/conf/web (VestaCP control panel?)

Then do "service nginx restart" command.