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:
    53
    Likes Received:
    0
    Trophy Points:
    6
    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:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    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