Control Web Panel

WebPanel => Apache => Topic started by: Riccardo on January 11, 2016, 10:13:32 PM

Title: How to use the domain associated to user account
Post by: Riccardo on January 11, 2016, 10:13:32 PM
Hello,
I'm here to ask you how i can use the domain specified during CWP account creation; in other words, if I create an account for my customer, i have to specify it's domain name, but when i try to upload the files, i'm not able to see it.

I also modified the Apache vHOST configuration:

# vhost_start mydomain.it
<VirtualHost XXX.XXX.XXX.XXX:80>
ServerName mydomain.it
ServerAlias www.mydomain.it
ServerAdmin info@mydomain.it
DocumentRoot "/home/useraccount/public_html/mydomain.it"
ScriptAlias /cgi-bin/ "/home/useraccount/public_html/mydomain.it/cgi-bin/
#
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/useraccount/mydomain.it/*.conf

<IfModule mod_suexec.c>
        SuexecUserGroup useraccount useraccount
</IfModule>

<IfModule mod_suphp.c>
        suPHP_UserGroup useraccount useraccount
        suPHP_ConfigPath /home/useraccount
</IfModule>

<Directory "/home/sinapps/public_html/mydomain.it">
        AllowOverride All
</Directory>

</VirtualHost>
# vhost_end mydomain.it

Your help is really appreciated!..

Thanks,
Riccardo
Title: Re: How to use the domain associated to user account
Post by: Igor S. on January 14, 2016, 09:55:48 AM
Hello.

I'm afraid the CWP do not have a feature for main domain changing.
You should remove it and create again, or to change domain in the database.
Title: Re: How to use the domain associated to user account
Post by: misterpat on January 15, 2016, 02:08:16 AM
The customers main domain folder is "public_html". Add-on domain directories can be specified at the time of creation.