Author Topic: Domain path complications  (Read 2261 times)

0 Members and 1 Guest are viewing this topic.

Domain path complications
« on: December 19, 2021, 04:52:02 PM »

So, i've noticed that when adding a new user, the domain path will be /home/USER/Public_html
No choice is given to us for changing this.

When creating a new domain, we can specify the new domain's path to be anywhere inside /home/USER

- Lets say I create a new user with domain This domain is now located in /home/USER/Public_html
- Now, lets create another domain within the same user [], and we choose the path to be /home/USER/Public_html/

Now we have a problem.
- Main domain can be accessed with
- Second domain can be accessed with
- but, the second domain can also be accessed with

Any comment from administration on this one?
« Last Edit: December 19, 2021, 04:54:37 PM by iraqiboy90 »

Re: Domain path complications
« Reply #1 on: December 20, 2021, 12:04:57 AM »
I have only managed to "fix" the first part of this issue, which is to change all
Code: [Select]
%docroot% to
Code: [Select]
%home%/%user%/public_html/%domain_idn% in a new vhost template for nginx and apache.

The other part that I need to get changed is to get the panel to automatically create the %domain_idn% folder inside public_html. I can't seem to figure it out.

I'm finding that this topic is being discussed since 2015. Can CWP devs care to tell us why this is not configurable?
« Last Edit: December 20, 2021, 12:07:33 AM by iraqiboy90 »