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!

Main shared vIP.

Discussion in 'General Discussion' started by whewt, May 14, 2007.

  1. whewt

    whewt Member

    Joined:
    Jan 12, 2006
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    151
    Well before when you access the server's IP via a webbrowser or port 80, it goes to the default cPanel landing page. I think since I upgraded to v11, the ip acts as an ip for a client's site of mine. How would I fix this without manually editing my files?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    166
    Open /usr/local/apache/conf/httpd.conf

    find the first instance of the IP you need. It will be in the section of the virtualhost section of the domain that is displayed when the IP is taken in browser.
    Add the following line above that virtual host entry , save the file and restart apache
    IP= ip address you need

    Code:
    <VirtualHost IP>
    BytesLog domlogs/server_hostnname-bytes_log
    ServerName server_hostname
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. whewt

    whewt Member

    Joined:
    Jan 12, 2006
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    151
    I did that and it worked, but the a customer added an addon domain, and the main IP changed to their site.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. newphp

    newphp Member

    Joined:
    Dec 27, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Chongqing,China
    Open /etc/wwwacct.conf

    ADDR xxx.xxx.xxx.xxx
    CONTACTEMAIL demo@domain.com
     
    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