RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
11-08-2015, 12:50 PM
(This post was last modified: 11-08-2015, 12:56 PM by kharl.)
I have done this on CentOS 7 and Sentora 1.0.3 for Webmail as a subdomain and it appears to work with no problems.
Create the subdomain as usual using the Subdomain UI. After Sentora creates the subdomain , open a terminal and type the following changing any of the capitalized code to fit your configuration:
I hope that I have the cp command right. I use so many different systems that I tend use desktops to do this so I don't have to remember all the intricacies of each OS. If not, please feel free to correct me and I'll make the appropriate edit.
Goto Module Admin, Apache Config. Under Override a Virtual Host Setting select the subdomain that you just created. In the Custom Entry box enter the following code again changing any of the capitalized code to fit your configuration:
Click Save Vhost and wait for the changes to be applied.
Create the subdomain as usual using the Subdomain UI. After Sentora creates the subdomain , open a terminal and type the following changing any of the capitalized code to fit your configuration:
Code:
cp /var/sentora/USERNAME/hostdata/public_html/webmail_DOMAIN_TLD/* /var/sentora/USERNAME/hostdata/public_html/webmail_DOMAIN_TLD.backup
ln -s /etc/sentora/panel/etc/apps/webmail /var/sentora/USERNAME/hostdata/public_html/webmail_DOMAIN_TLD
I hope that I have the cp command right. I use so many different systems that I tend use desktops to do this so I don't have to remember all the intricacies of each OS. If not, please feel free to correct me and I'll make the appropriate edit.
Goto Module Admin, Apache Config. Under Override a Virtual Host Setting select the subdomain that you just created. In the Custom Entry box enter the following code again changing any of the capitalized code to fit your configuration:
Code:
php_admin_value open_basedir "/var/sentora/hostdata/USERNAME/hostdata/public_html/webmail_DOMAIN_TLD:/var/sentora/temp/:/etc/sentora/configs/roundcube/:/var/sentora/logs/roundcube/"
Click Save Vhost and wait for the changes to be applied.