Can you clarify what is happening? When you say "the ip address changed", are you talking about the IP address of the server?
I'm reading this as "I want to be able to access my website from its IP in my browser". If that is the case: If you go to the main IP address of a server, you are typically always going to get the default website page. The shared IP is, by default, loading from /usr/local/apache/htdocs. If you go to a website configured on that IP, by its domain name, it will show up. If you want the main IP to load from a different location so you can access the site by IP address, you can do so as follows:
Code:
cd /var/cpanel/templates/apache2
cp main.default main.local
Then change the default docroot to the docroot of your website and rebuild the config.
Code:
/scripts/rebuildhttpdconf
service httpd restart