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.

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:
    16
    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
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
  3. netnameus

    netnameus Well-Known Member

    Joined:
    Mar 7, 2004
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    16
    thanks, worked beautifuly
     
Loading...

Share This Page