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.

assign 2 ips to the same site

Discussion in 'General Discussion' started by katmai, Aug 15, 2007.

  1. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    hi there,

    i have a server, 2 nic's how can i make so that the site will be accessible by any of the ips? is it possible to add the second ip to the same website?

    cheers
     
  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
    Yes, edit httpd.conf and add the second IP address to the virtual host container in httpd.conf.

    So you'd have something like this:

    <.... 192.168.1.1 1.2.3.4>

    instead of just

    <.... 1.2.3.4>
     
  3. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    sweeeet thanks
     
Loading...

Share This Page