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.

SOLVED Change the Subdomain Root Document

Discussion in 'General Discussion' started by Tonino Gerns, Jan 10, 2017.

Tags:
  1. Tonino Gerns

    Tonino Gerns Registered

    Joined:
    Jan 10, 2017
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Germany
    cPanel Access Level:
    Root Administrator
    Good Morning,

    How can I change the path from the subdomains? These are stored in "public_html" by default. But I want them to be in "/subdomains/*" outside of "public_html".

    If I enter the path manually, it saves it in "public_html".

    Thanks for your help.

    Best regards
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    542
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    In WHM there is "Restrict document roots " setting. If you have enable that option then you can able to create addon domains and subdomains outside of a cPanel user's primary domain's
    WHM >> Home >> Server Configuration >> Tweak Settings
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    As mentioned in the previous post, the following option is available under the Domains tab in WHM >> Tweak Settings:

    Restrict document roots to public_html

    Per the description:

    You'd need to ensure this option is off, and then browse to the "Subdomains" option within cPanel and click the path under the "Document Root" column to make the change.

    Thank you.
     
    kawasakai likes this.
  4. Tonino Gerns

    Tonino Gerns Registered

    Joined:
    Jan 10, 2017
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Germany
    cPanel Access Level:
    Root Administrator
    Thanks for your help :)
     
    cPanelMichael likes this.
Loading...

Share This Page