First thing I noticed is you added a closing </virtualhost>. Sentora will automatically add it when it re-writes the vhost information.
Also, to use the alias method for every domain automatically, you need to add:
Location: Module Admin > Apache Admin > Global VHost Entry
Save and wait for the httpd-vhosts.conf file to be re-written and for apache to reload (About 5 minutes).
Then any domain or sub domain should be able to access your webmail or phpmyadmin by using domain.com/webmail or sub.domain.com/webmail and domain.com/mysql or sub.domain.com/mysql
Also, to use the alias method for every domain automatically, you need to add:
Code:
# Alias for MySQL login
Alias "/mysql" "/etc/sentora/panel/etc/apps/phpmyadmin"
<Directory "/etc/sentora/panel/etc/apps/phpmyadmin/">
php_admin_value open_basedir /etc/sentora/panel/etc/apps/phpmyadmin
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
# Alias for roundcube WebMail login
Alias "/webmail" "/etc/sentora/panel/etc/apps/webmail"
<Directory "/etc/sentora/panel/etc/apps/webmail/">
php_admin_value open_basedir /var/sentora/temp/:/etc/sentora/panel/etc/apps/webmail:/var/sentora/logs/roundcube
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
Save and wait for the httpd-vhosts.conf file to be re-written and for apache to reload (About 5 minutes).
Then any domain or sub domain should be able to access your webmail or phpmyadmin by using domain.com/webmail or sub.domain.com/webmail and domain.com/mysql or sub.domain.com/mysql