Hello,
I use a completely different way to get the same result.
My 00_master.conf:
Code:
<VirtualHost 192.168.178.100:80>
ServerAdmin webmaster@freakez.eu
DocumentRoot /var/www/ispcp/gui
ServerName admin.freakez.eu
ServerAlias admin.freakez.nl
Alias /errors /var/www/ispcp/gui/errordocs/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
RedirectMatch permanent ^/pma[\/]?$ https://pma.freakez.eu/
RedirectMatch permanent ^/webmail[\/]?$ https://webmail.freakez.eu/
RedirectMatch permanent ^/ftp[\/]?$ https://ftp.freakez.eu/
Redirect permanent / https://admin.freakez.eu/
</VirtualHost>
<VirtualHost 192.168.178.100:80>
ServerAdmin webmaster@freakez.eu
DocumentRoot /var/www/ispcp/gui/tools/webmail
ServerName webmail.freakez.eu
ServerAlias webmail.*
Redirect permanent / https://webmail.freakez.eu/
</VirtualHost>
<VirtualHost 192.168.178.100:80>
ServerAdmin webmaster@freakez.eu
DocumentRoot /var/www/ispcp/gui/tools/filemanager
ServerName ftp.freakez.eu
ServerAlias ftp.*
Redirect permanent / https://ftp.freakez.eu/
</VirtualHost>
<VirtualHost 192.168.178.100:80>
ServerAdmin webmaster@freakez.eu
DocumentRoot /var/www/ispcp/gui/tools/pma
ServerName pma.freakez.eu
ServerAlias pma.*
Redirect permanent / https://pma.freakez.eu/
</VirtualHost>
My 00_ssl_master.conf:
Code:
<VirtualHost 192.168.178.100:443>
GnuTLSEnable on
GnuTLSPriorities NORMAL
DocumentRoot /var/www/ispcp/gui
ServerName admin.freakez.eu
GnuTLSCertificateFile /etc/apache2/ssl/admin.freakez.eu.crt
GnuTLSKeyFile /etc/apache2/ssl/admin.freakez.eu.key
ServerAdmin webmaster@freakez.eu
Alias /errors /var/www/ispcp/gui/errordocs/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
RedirectMatch permanent ^/pma[\/]?$ https://pma.freakez.eu/
RedirectMatch permanent ^/webmail[\/]?$ https://webmail.freakez.eu/
RedirectMatch permanent ^/ftp[\/]?$ https://ftp.freakez.eu/
<IfModule suexec_module>
SuexecUserGroup vu2000 vu2000
</IfModule>
<Directory /var/www/ispcp/gui>
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_fcgid.c>
<Directory /var/www/ispcp/gui>
FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/master/
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_php5.c>
<Directory /var/www/ispcp/gui>
php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>
</VirtualHost>
<VirtualHost 192.168.178.100:443>
GnuTLSEnable on
GnuTLSPriorities NORMAL
DocumentRoot /var/www/ispcp/gui/tools/webmail
ServerName webmail.freakez.eu
GnuTLSCertificateFile /etc/apache2/ssl/webmail.freakez.eu.crt
GnuTLSKeyFile /etc/apache2/ssl/webmail.freakez.eu.key
ServerAdmin webmaster@freakez.eu
Alias /errors /var/www/ispcp/gui/errordocs/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
<IfModule suexec_module>
SuexecUserGroup vu2000 vu2000
</IfModule>
<Directory /var/www/ispcp/gui>
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_fcgid.c>
<Directory /var/www/ispcp/gui>
FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/master/
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_php5.c>
<Directory /var/www/ispcp/gui>
php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>
</VirtualHost>
<VirtualHost 192.168.178.100:443>
GnuTLSEnable on
GnuTLSPriorities NORMAL
DocumentRoot /var/www/ispcp/gui/tools/filemanager
ServerName ftp.freakez.eu
GnuTLSCertificateFile /etc/apache2/ssl/ftp.freakez.eu.crt
GnuTLSKeyFile /etc/apache2/ssl/ftp.freakez.eu.key
ServerAdmin webmaster@freakez.eu
Alias /errors /var/www/ispcp/gui/errordocs/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
<IfModule suexec_module>
SuexecUserGroup vu2000 vu2000
</IfModule>
<Directory /var/www/ispcp/gui>
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_fcgid.c>
<Directory /var/www/ispcp/gui>
FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/master/
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_php5.c>
<Directory /var/www/ispcp/gui>
php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>
</VirtualHost>
<VirtualHost 192.168.178.100:443>
GnuTLSEnable on
GnuTLSPriorities NORMAL
DocumentRoot /var/www/ispcp/gui/tools/pma
ServerName pma.freakez.eu
GnuTLSCertificateFile /etc/apache2/ssl/pma.freakez.eu.crt
GnuTLSKeyFile /etc/apache2/ssl/pma.freakez.eu.key
ServerAdmin webmaster@freakez.eu
Alias /errors /var/www/ispcp/gui/errordocs/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
<IfModule suexec_module>
SuexecUserGroup vu2000 vu2000
</IfModule>
<Directory /var/www/ispcp/gui>
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_fcgid.c>
<Directory /var/www/ispcp/gui>
FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/master/
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_php5.c>
<Directory /var/www/ispcp/gui>
php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>
</VirtualHost>
I use mod_gnutls for multiple certificates with a single IP address, but you can change mod_gnutls settings to mod_ssl settings.
Cheers!