Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I had a problem of changing an IP address of just one of the few addon domains on a cPanel/WHM account, but I managed to find a solution (by manually editing A records in DNS zones of the main account and the addon domain, and changing the IP in /var/cpanel/userdata/username/addon.domain.com).

However, this addon domain (example.com) also had a subdomain attached to it (sub.example.com), so I replaced the IP in the A records for it too, and I also changed the IP via SSH in the above mentioned path.

Now both example.com and sub.example.com are correctly resolving to the new dedicated IP and that's okay. But when I type this IP address in the browser, it loads the sub.example.com website instead of the main example.com website.

I have no clue as to why is this happening. How do I change the main (primary, default) website of a dedicated IP address?


migration rejected from superuser.com May 2 at 17:33

This question came from our site for computer enthusiasts and power users. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by masegaloeh, Hyppy, mdpc, Scott Pack, Jenny D May 2 at 17:33

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.