The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem when switching domain to dedicated IP

Discussion in 'General Discussion' started by jthomas, Jul 14, 2007.

  1. jthomas

    jthomas Active Member

    Joined:
    Jul 31, 2006
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    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.)
     
  3. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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!
     
  4. jthomas

    jthomas Active Member

    Joined:
    Jul 31, 2006
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    thank you very much for your responses. I guess i was just impaitent
     
Loading...

Share This Page