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!

Change document_root for subdomain

Discussion in 'General Discussion' started by alcest, Aug 10, 2009.

  1. alcest

    alcest Member

    Joined:
    Aug 10, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    51
    How to change default subdomain docuemnt_root

    from: /user/public_html
    to: /user/public_html/subdomains

    for ALL existing, and new create accounts?
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    68
    To change the document_root you will need to modify the httpd.conf file which is located at the following locations and change the virtual host document root path:

    /usr/local/apache/conf/httpd.conf
     
    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