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 server ip/hostname is loading another site...

Discussion in 'General Discussion' started by Moony1234, Apr 26, 2003.

  1. Moony1234

    Moony1234 Member

    Joined:
    Apr 24, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    My main server ip/hostname is loading one of my customer #1's site [this ip is the main shared ip for hosting]

    When typed in raw it should load /usr/local/apache/htdocs/index.html

    instead it is loading one my customer #1's site...

    This isnt good as if anyone dns's one of my 90 customers sites and loads the IP, it will bring them to customer #1's site [which is a private site].

    Can someone please tell me how to fix this so when typing the main/shared ip it loads /usr/local/apache/htdocs/index.html and not this private site!!

    Thank you.
     
  2. FWC

    FWC Well-Known Member

    Joined:
    May 13, 2002
    Messages:
    354
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ontario, Canada
    Make sure the virtual host entry for your server is the first one listed in httpd.conf. I think that will fix it. It should look like this with the correct IP number, server name and domain name:

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

    c4host Well-Known Member

    Joined:
    Mar 7, 2003
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    How do I get my site off the main ip and have just the apache page come up

    cPanel.net Support Ticket Number:
     
  4. rbmatt

    rbmatt Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Just like FWC said.
    I assume your site is in /home/username/public_html right? Then /usr/local/apache/htdocs should be the apache page.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page