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.

Set what site and IP shows.

Discussion in 'General Discussion' started by lukedyson, Jun 26, 2005.

  1. lukedyson

    lukedyson Member

    Joined:
    Jan 28, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    My main shared IP points to a random account instead of to my main account. How do I set what the ip http://72.36.151.178/ will show?

    Luke :)
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    The shared IP takes visitors to the first entry in the httpd.conf file that uses that IP. You can either just move the entry for the site you want visitors to see up to the first one in the file or you can have the shared IP point to the default htdocs directory by putting this before the other VirtualHost entries:

    <VirtualHost xxx.xxx.xx.xx>
    BytesLog domlogs/server.domain.com-bytes_log
    ServerName server.domain.com
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>

    Change the x's to your shared IP and server.domain.com to your server's URL.
     
  3. lukedyson

    lukedyson Member

    Joined:
    Jan 28, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Ah! Thanks alot for this info!
     
Loading...

Share This Page