Problem when switching domain to dedicated IP

jthomas

Active Member
Jul 31, 2006
27
0
151
I have one domain that is giving me troubles. When I switch it to a dedicated IP, it starts giving the standard "Great Success !" cpanel and apache page. But when I change the sites IP address back to the servers shared IP adddress it works fine. It is only this one domain that is causing the problems. Any ideas on how to fix this?
 

brianoz

Well-Known Member
Mar 13, 2004
1,146
7
168
Melbourne, Australia
cPanel Access Level
Root Administrator
When you change the IP, apache will serve up the generic success page for the URL unless it is coming from the new IP. That is, if the old IP is 1.2.3.4 and you change the site to 6.7.8.9, your local DNS cache will still be trying 1.2.3.4 for a while and so you will see the generic page.

There are two solutions - the easiest is just to wait.

The more complex, but immediate, solution is to jump into the httpd.conf file, if you can't wait, and add the second IP in the virtual container for that domain. That is, this:

Code:
<VirtualHost 1.2.3.4>
becomes this:
Code:
<VirtualHost 1.2.3.4 6.7.8.9>
(Obviously you find and change just the VirtualHost line enclosing the section for that domain only.)
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
I have one domain that is giving me troubles. When I switch it to a dedicated IP, it starts giving the standard "Great Success !" cpanel and apache page. But when I change the sites IP address back to the servers shared IP adddress it works fine. It is only this one domain that is causing the problems. Any ideas on how to fix this?
ROFL! :D There is no problem whatsoever!

What is happening is that you are updating the site to use a new IP
but your computer at home still has the old IP information cached
in it's own routing tables so when you try to connect immediately
after changing the IP, your computer continues to try to connect
to the original IP instead of the new IP address.

You can either flush your local resolver cache on your computer at home

(OR)

Wait a day or so until your computer updates it's routing information

As far as the account and your hosting server goes, there is nothing wrong at all!