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!

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:
    532
    Likes Received:
    0
    Trophy Points:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    168
    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>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    532
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Brno, Czech Republic
    sweeeet thanks
     
    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