How to change Document Root for domain

Hello. I added my custom .com domain and i saw it is located in /home/vol12_2/epizy.com/epiz_18988195/domainname

The default .epizi domain which was mandatory at signup was located in /home/vol12_2/epizy.com/epiz_18988195/htdocs

I deleted the .epizi domain and I want to change the source of my custom domain from /home/vol12_2/epizy.com/epiz_18988195/domainname to /home/vol12_2/epizy.com/epiz_18988195/htdocs

How can I do this?

Thank you very much for your awesome service!!

Hello.

Unfortunately I think that currently it is not posibble to do so. The htdocs folder on the root directory is only reserved/available for your default/mandatory domain. However for all the other domains their corresponding public HTML (htdocs) folders are located under the folder that is named like that domain.

For example if you have a add-on domain called example.com then it will have a folder with the same name which will have a child folder htdocs, where you have to upload the public-view files.

Have a nice day!

Mike

Ok. Thanks for your answer.
I asked becaus eI saw this option: ServInt - Leaseweb
but I cannot access /var/cpanel/userdata
I cannot find that folder in /cpanel.

Do you have any idea if it’ll work after the .htaccess file like here: How to change my document root folder using an .htaccess file? - SiteGround KB

Many thanks,
Alex

Well, the short answer is that you cannot change the document root. It should also be noted that we don’t use cPanel here.

As for changing the document root with a .htaccess file, I honestly don’t know if that will work (I’ve never seen any particular need to move the document root) but you’re free to try.

Ok. Thank you so much for your answer @Admin