Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    10

    Default IP Address pointing to customers virtual host

    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. #2
    Member
    Join Date
    Sep 2006
    Posts
    10

    Default

    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. #3
    cPanel Partner NOC cPanel Partner NOC Badge Zishan's Avatar
    Join Date
    Aug 2005
    Posts
    104

    Default

    Quote Originally Posted by Factorhost View Post
    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>
    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 :

    /scripts/upcp --force (So that the Apache templates are updated)
    /usr/local/cpanel/bin/apache_conf_distiller --update
    /usr/local/cpanel/bin/build_apache_conf
    /etc/init.d/httpd stop
    /etc/init.d/httpd start
    Last edited by Zishan; 02-22-2009 at 10:24 AM.

Similar Threads & Tags
Similar threads

  1. Pointing subdomain to different host [namecheap]
    By demrod in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 05-09-2011, 01:43 AM
  2. Dedicated IP address default virtual host
    By xous in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-08-2008, 07:52 PM
  3. Virtual Host
    By zaqizaba in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-20-2005, 11:18 AM
  4. pointing a subdomain to ip address
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-14-2002, 07:23 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube