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.

Default website on an IP?

Discussion in 'General Discussion' started by Chris-777, Apr 14, 2011.

  1. Chris-777

    Chris-777 Member

    Joined:
    Apr 8, 2011
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    My cPanel's primary account shares it's IP with WHM. (.114)

    DNS is working, and the site works fine with a FQDN. However if I hit the IP address in a web browser, I get a default Apache page.

    Is there a way that I can select a folder for the default website, so that the IP brings up a client TLD rather than the "flush your cache" page?

    Thanks as always!
     
  2. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Try using the mod_userdir syntax, which will take you to the respective client site by appending a /~username to the URL, a la:

    http://1.2.3.4/~bob/

    Would take you to the document root for the cPanel account "bob."

    Also, sites on a dedicated IP will work without the need for the userdir syntax mentioned above.
     
Loading...

Share This Page