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.

does cp allow one site have two IPs?

Discussion in 'General Discussion' started by boris0452, Sep 10, 2005.

  1. boris0452

    boris0452 Member

    Joined:
    Jun 26, 2005
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    some time my IP will be blocked in china, so I need to one site to hold two IPs, one Ip for nomall user using, another for VIP user used, can I do this? how to setting?
     
  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 would have to modify some files manually. You will need to add another A record into the zone file for the domain using the new IP ass well as the old IP. You then need to edit httpd.conf and add the new IP to the VirtualHost directive for that domain.
     
  3. boris0452

    boris0452 Member

    Joined:
    Jun 26, 2005
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    can you tell me the detail how to do it?
     
  4. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    hi

    i think you just add the new ip next to the old one in the httpd.conf

    <virtualhost 1.1.1.1 2.2.2.2.2>

    I think this is how you do it..

    cheers
    andy
     
  5. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    Or just install the desired different subdomain on your different IPs by using WHM account creation
     
  6. boris0452

    boris0452 Member

    Joined:
    Jun 26, 2005
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1

    thank you,I will try it!
     
Loading...

Share This Page