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!

edit main domain doc root in vhost.default

Discussion in 'General Discussion' started by mindaugas, Jan 31, 2009.

  1. mindaugas

    mindaugas Member

    Joined:
    Jan 28, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    Does anyone know if it is possible to edit the document root location for the main domain when creating an account? I assume I need to do this in /var/cpanel/templates/apache2/vhost.default but not sure exactly where. I'm basically trying to edit it so that each domain on an account has it's own directory under public_html. IE:

    main domain doc root: public_html/maindomain.com
    addon domain doc root: public_html/addondomain.com

    I know I can edit the include vhost file but I want this to be permanent and take place when I create an account. Thanks for any help!
     
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