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!

Document Root for dedicated ip address

Discussion in 'Bind/DNS/Nameserver' started by musioc, Oct 10, 2017.

  1. musioc

    musioc Well-Known Member

    Joined:
    Aug 4, 2011
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    66
    Hello
    Do you know how to change default document root for dedicated ip address in cpanel?
    We have an account with dedicated ip address and with some aliases and subdomains..
    When I enter ip address in address bar, it show one of subdomains.
    We want it to show main domain.
    Is it possible?
     
  2. HostingH

    HostingH Well-Known Member

    Joined:
    Jan 13, 2008
    Messages:
    123
    Likes Received:
    17
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hello,

    Dedicated IP is showing your sudomain instead of main domain because in httpd.conf, whichever virtual host appears first for that IP will get displayed first in browser. Contact with your provider and ask him to liftup virtualhost entry for your main domain.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Shushant and Abhijitsugale like this.
  3. musioc

    musioc Well-Known Member

    Joined:
    Aug 4, 2011
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    66
    Thank you,
    I am server admin and I know this, I've deleted subdomain and added it again to resolve issue. But this is not a good idea.
    In other hand, I can not edit httpd.conf because I use easyapache 4 and apache 2.4 , so any change will be revert.
    Code:
    #   Direct modifications to the Apache configuration file WILL be lost upon subsequent
    #   regeneration of this configuration file, or an Apache update.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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