You can use these custom vhost entries to customize sub-domains for various apps:
NOTICE: This could be vulnerable as the sub domains are not locked down using suhosin. Use at your own risk!
Module Admin>Apache Config>Override a Virtual Host Setting>[select domain]>Custom Entry
(Customize file/folder paths to work with your server setup.)
(NOTE: Do NOT add these sub-domains in the sub-domain module!)
Code:
You will also need to add them in your DNS registrar and in Sentora's DNS Manager module (add A records for each of mysql.yoursite.tld and webmail.yoursite.tld, etc.)
NOTE: Changes may take up to 48 hours to work! Be patient
NOTICE: This could be vulnerable as the sub domains are not locked down using suhosin. Use at your own risk!
Module Admin>Apache Config>Override a Virtual Host Setting>[select domain]>Custom Entry
(Customize file/folder paths to work with your server setup.)
(NOTE: Do NOT add these sub-domains in the sub-domain module!)
Code:
Code:
</VirtualHost>
# Configuration for phpMyAdmin - mysql.yoursite.tld
<VirtualHost *:80>
ServerAdmin webmaster[at]yoursite.tld
DocumentRoot "/etc/sentora/panel/etc/apps/phpmyadmin/"
ServerName mysql.yoursite.tld
AddType application/x-httpd-php .php3 .php
<Directory />
php_admin_value open_basedir /etc/sentora/panel/etc/apps/phpmyadmin
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
# Configuration for WebMail - webmail.yoursite.tld
<VirtualHost *:80>
ServerAdmin webmaster[at]yoursite.tld
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
ServerName webmail.yoursite.tld
AddType application/x-httpd-php .php3 .php
<Directory />
php_admin_value open_basedir # 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>
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
NOTE: Changes may take up to 48 hours to work! Be patient