Skip to main content

AutoSSL & different DocumentRoot

Comments

2 comments

  • cPanelMichael
    Whether by mistake or not. I chose the best route for hosting a variety of applications, by simply dropping include files into `etc/apache2/conf.d/userdata` changing the DocumentRoot for most of my sites.

    Hello, The proper method to modify the document root is to update the "documentroot" value in the file corresponding to the domain name in the following directory: /var/cpanel/userdata/$username/ Then, run the following command:
    /scripts/rebuildhttpdconf
    This should allow AutoSSL to detect the correct document root during the validation process. Thank you.
    0
  • dnavarrojr
    I would also add that you need to make sure you edit both the $domain.conf and $domain_SSL.conf files. Also, you have to restart Apache. This should really be a setting in cPanel. Allow us to put the primary domain in the same folder where the addon and subdomain folders go.
    0

Please sign in to leave a comment.