Need to change virtual host IP in httpd.conf

otakudes

Active Member
Jun 19, 2020
43
7
8
USA
cPanel Access Level
Website Owner
I noticed the IP address for my site is from a previous server. How do I update? I tried editing the file and it reverted to original IP.
Code:
<VirtualHost XX.XX.XX.XX:80>
    ServerName XXX.XXX.com
    DocumentRoot /var/www/html
    ServerAdmin [email protected]
    # Global DCV Rewrite Exclude
    <IfModule rewrite_module>
    RewriteOptions Inherit
    </IfModule>
When I list the account it has the correct IP.

EDIT: I found the answer here on another thread: #2
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,598
2,618
363
cPanel Access Level
Root Administrator
Hey there! That thread is very old, and likely wouldn't provide you with the correct information.

I would recommend checking the data in /var/cpanel/userdata for that account and ensuring the wrong IP is not listed there for the domain.