Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

http://IP address redirect to subdomain not main domain

Discussion in 'General Discussion' started by Lor, Sep 12, 2014.

  1. Lor

    Lor Well-Known Member

    Joined:
    Apr 29, 2005
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    156
    URL: http://site_IP_address shows subdomain in web browser not main domain

    How to point IP address to main domain not to subdomain?

    Please, help.

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,957
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    It will show the contents of the document root for the first VirtualHost in the Apache configuration file. You can try rebuilding the Apache configuration file first before attempting to manually modify which VirtualHost is first in the httpd.conf file:

    Code:
    /scripts/rebuildhttpdconf
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice