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.

How do I set the default site for my host?

Discussion in 'General Discussion' started by formula13x, Nov 25, 2008.

  1. formula13x

    formula13x Member

    Joined:
    Nov 25, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    After installing cpanel, and specifying a hostname, how should I specify the site I want to be visible if somebody visits my hostname?

    Right now the default site when visiting my host, you will receive the site that was specified under one of the sub accounts that I created. What's the deal?
     
  2. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    I think that would depend on what version of apache you are using, back when we used v 1.3.3 we would make sure the first host in the httpd.conf was the one we wanted loaded when someone visited. Since then we have converted to 2.2.10 I guess it kept it the same, but look in your httpd.conf and see the first vhost entry and see if it the one it is loading when you go to the host name, if so at least your pointed in the right direction.

    You might look at http://forums.cpanel.net/showthread.php?t=99833 I think they are saying the same thing you are.
     
    #2 rhenderson, Nov 26, 2008
    Last edited: Nov 26, 2008
  3. apscinsspl

    apscinsspl Well-Known Member

    Joined:
    Mar 15, 2008
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    Yes Rhenderson is correct, the solution is on the link:

    http://forums.cpanel.net/showthread.php?t=99833

    The default host of a server should always be /usr/local/apache/htdocs

    so that the default cpanel page is displayed when you access the server IP in browser.
     
  4. formula13x

    formula13x Member

    Joined:
    Nov 25, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Thanks! I'll post my replys in that thread to keep all the information in one place.
     
Loading...

Share This Page