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.

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:
    1
    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?
     
  2. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    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>
    
     
  3. whewt

    whewt Member

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

    newphp Member

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

    ADDR xxx.xxx.xxx.xxx
    CONTACTEMAIL demo@domain.com
     
Loading...

Share This Page