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.

IP Address pointing to customers virtual host

Discussion in 'General Discussion' started by Factorhost, Feb 22, 2009.

  1. Factorhost

    Factorhost Member

    Joined:
    Sep 24, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hey. Well we just moved files over to a fresh install and everything's going great. However when i go to the shared IP address in my browser i see that instead of the Sucessfully installed cPanel / our custom page it's pointing to a customers account.

    This is a real pain. So how could i rectify this?

    I've looked through httpd.conf and have no idea how to add an entry for the IP or fix this!

    Cheers
     
  2. Factorhost

    Factorhost Member

    Joined:
    Sep 24, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Ok i fixed it!

    Just added a virtual entry for the IP with my servername like so

    Code:
    
    <VirtualHost THEIP:80>
        ServerName YOURHOSTNAME
        DocumentRoot /usr/local/apache/htdocs
        ServerAdmin YOURHOSTNAME
        <IfModule mod_suphp.c>
            suPHP_UserGroup nobody nobody
        </IfModule>
    </VirtualHost>
    
    
     
  3. Zishan

    Zishan Well-Known Member

    Joined:
    Aug 6, 2005
    Messages:
    104
    Likes Received:
    1
    Trophy Points:
    0
    If you have manually added that section then it will not be preserved. httpd.conf is no more being used as a data store and its rebuilt based on the information at /var/cpanel/userdata. If you are seeing the customer's site and not the default cPanel/Apache Green page and its the shared IP then I would suggest :

     
    #3 Zishan, Feb 22, 2009
    Last edited: Feb 22, 2009
Loading...

Share This Page