Hey there,
I'm working with the to Howtos
Create SSL Certs and secure multiple services
and
Howto put webmail.domain.tld, etc. in usage
I first did the second one. And it worked all fine.
Then the second one came in, and I did do the ssl as 06 under the /sites-available inthe /etc/apache2 not as told as 02, because 02 wasa already taken by another service.
Now my problem is, that whether I type in any webmail.domain.tld from one of the domains my server offers I get redirected to the
https://panel.domain.tld
This is my 00_master.conf
Code:
<VirtualHost 83.169.36.51:80>
ServerName panel.fmi-online.com
Redirect / https://panel.fmi-online.com/
</VirtualHost>
#
# Master Begin
#
<VirtualHost 83.169.36.51:80>
ServerAdmin webmaster@fmi-online.com
DocumentRoot /var/www/ispcp/gui
ServerName panel.fmi-online.com
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
# Alias /pma /var/www/ispcp/gui/tools/pma/
# Alias /webmail /var/www/ispcp/gui/tools/webmail/
# Alias /ftp /var/www/ispcp/gui/tools/filemanager/
<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>
Not all of it but the part that I changed.
This is my 06_ssl_master.conf
Code:
#
# SSL Master Begin
#
<VirtualHost 83.169.36.51:443>
#
# SSL Start
#
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.cert.pem
SSLCertificateKeyFile /etc/apache2/ssl/apache.key.pem
#
# SSL End
#
ServerAdmin webmaster@fmi-online.com
DocumentRoot /var/www/ispcp/gui
ServerName panel.fmi-online.com
ErrorLog /var/log/apache2/users/ssl.fmi-online.com.com-error.log
TransferLog /var/log/apache2/users/ssl.fmi-online.com-access.log
CustomLog /var/log/apache2/ssl.fmi-online.com-traf.log traff
CustomLog /var/log/apache2/ssl.fmi-online.com-combined.log combined
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
# Alias /pma /var/www/ispcp/gui/tools/pma/
# Alias /webmail /var/www/ispcp/gui/tools/webmail/
# Alias /ftp /var/www/ispcp/gui/tools/filemanager/
<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>
Again not the whole one but the parts that I changed are in there.
Now, if I try to access e.g. webmail.fmi-films.com it redirects me right away to
https://panel.fmi-online.com
But even if I try to access any
https://www.domain.tld it redirects me instantly to the above address.
My DNS-Service is put to *.domain.tld, per wildcard, to redirect it to the IP address.
It would be nice if someone could help me with that, because I don't know what else to do.
Thank you very much.
Kind regards,
drumlover