Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Switch IP for account

Discussion in 'General Discussion' started by netnameus, Apr 15, 2005.

  1. netnameus

    netnameus Well-Known Member

    Joined:
    Mar 7, 2004
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    166
    How can I switch an accounts IP address without downtime for that account? I switched an account from the shared IP to a dedicated IP, but when i visited the domain it displayed my main website instead of the correct one.

    P.S. I just got this IP assigned to me today
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    You should be able to edit /etc/httpd/conf/httpd.conf and modify the VirtualHost container for the domain to respond to both IP addresses, find the one for your domain:

    <VirtualHost 11.22.33.44 11.22.33.45>
    .
    .
    .
    </VirtualHost>


    Then restart httpd.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. netnameus

    netnameus Well-Known Member

    Joined:
    Mar 7, 2004
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    166
    thanks, worked beautifuly
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice