How to Change defult public_html folder to another folder?

Started by Domains, January 11, 2023, 05:11:58 PM

Previous topic - Next topic

Domains

Hello,
When we add a new user in cwp, for main domain name, It always use home/username/public_html
I'm trying to change this address for my main domain. how can I do that?
For example change current address to: home/username/public_html/mainwebsite/
Can you help me please? (I searched the forum and I couldn't find a solution)  :-\

Domains


overseer

If this is a one-off change (and not a tpl permanent change for future account creation), you can either edit the vhosts file, or an .htaccess file to set your site root. Are you using apache or nginx?

Domains

Quote from: overseer on January 21, 2023, 09:35:48 PM
If this is a one-off change (and not a tpl permanent change for future account creation), you can either edit the vhosts file, or an .htaccess file to set your site root. Are you using apache or nginx?

Hi
Thanks for reply. I'm using Apache.
I want to change root domain folder to a sub folder, and then use the root folder for my other websites, because I found out that there is a really bad bug with file lock in CWP:
http://forum.centos-webpanel.com/index.php?topic=12593.msg43210#msg43210