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.

edit main domain doc root in vhost.default

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

  1. mindaugas

    mindaugas Member

    Jan 28, 2009
    Likes Received:
    Trophy Points:
    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/
    addon domain doc root: public_html/

    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!

Share This Page