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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    57
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page