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.

Document Root for dedicated ip address

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

  1. musioc

    musioc Well-Known Member

    Joined:
    Aug 4, 2011
    Messages:
    110
    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:
    101
    Likes Received:
    15
    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.
     
    Shushant and Abhijitsugale like this.
  3. musioc

    musioc Well-Known Member

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

Share This Page