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.

http://IP/ is going to a clients website

Discussion in 'General Discussion' started by MadStu, Oct 3, 2005.

  1. MadStu

    MadStu Active Member

    Joined:
    May 17, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Hi,
    Can anyone tlel me how I can stop users visiting my IP address at http://IP/ fom seeing one of my clients websites?

    My other servers have a default cpanel page there (There is no website configured at this address).


    Can someone tell me how I can put that default cpanel page there or to put one of my own sites there in it's place?


    Stu :D
     
  2. MadStu

    MadStu Active Member

    Joined:
    May 17, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
  3. avijit

    avijit Well-Known Member

    Joined:
    Jul 26, 2004
    Messages:
    116
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Since the client website is the first VirtualHost entry on that very ip , it is taking to that client page.

    You can add an entry like the following just after the first

    NameVirtualHost xxx.xxx.xxx.xxx:80


    <VirtualHost xxx.xxx.xxx.xxx>
    BytesLog domlogs/server.servername.tld-bytes_log
    ServerName server.servername.tld
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>


    Where, xxx.xxx.xxx.xxx is your shared ip.
     
Loading...

Share This Page