Control Web Panel
WebPanel => CentOS-WebPanel GUI => Topic started by: iraqiboy90 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?
-
I have only managed to "fix" the first part of this issue, which is to change all
%docroot%
to %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?