Author Topic: Domain path complications  (Read 2476 times)

0 Members and 1 Guest are viewing this topic.

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

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 domain_one.com. This domain is now located in /home/USER/Public_html
- Now, lets create another domain within the same user [domain_two.com], and we choose the path to be /home/USER/Public_html/domain_two.com

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

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

Offline
***
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.

Edit:
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 »