У меня есть 2 домена.domain2.io
(2 субдомена) с Wildcard SSL
и domain1.de
с normal SSL
.Моя проблема в том, что domain2.io
как-то использует SSL от domain1.de
.Что я не прав?Вот моя конфигурация:
000-default.conf:
<VirtualHost *:80>
ServerName domain1.de
ServerAlias www.domain1.de
Redirect / https://www.domain1.de/
</VirtualHost>
<VirtualHost *:80>
ServerName domain2.io
ServerAlias www.domain2.io
Redirect / https://domain2.io/
</VirtualHost>
<VirtualHost *:80>
ServerName service.domain2.io
ServerAlias www.service.domain2.io
Redirect / https://service.domain2.io
</VirtualHost>
<VirtualHost *:80>
ServerName webapp.domain2.io
ServerAlias www.webapp.domain2.io
Redirect / https://webapp.domain2.io
</VirtualHost>
А вот мой 000-default-ssl.conf:
NameVirtualHost *:443
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName domain1.de
DocumentRoot /var/www/html/apps/domain1/new/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined.
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/domain1/domain1.de.crt
SSLCertificateKeyFile /etc/apache2/ssl/domain1/domain1.de.key
</VirtualHost>
<VirtualHost *:443>
ServerName domain2.io
DocumentRoot /var/www/html/websites/domain2/webapp/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined.
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/domain2/domain2.io.crt
SSLCertificateKeyFile /etc/apache2/ssl/domain2/domain2.io.key
</VirtualHost>
<VirtualHost *:443>
ServerName service.domain2.io
ServerAlias www.service.domain2.io
DocumentRoot /var/www/html/websites/domain2/backend/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined.
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/domain2/domain2.io.crt
SSLCertificateKeyFile /etc/apache2/ssl/domain2/domain2.io.key
</VirtualHost>
<VirtualHost *:443>
ServerName webapp.domain2.io
ServerAlias www.webapp.domain2.io
DocumentRoot /var/www/html/apps/domain2/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined.
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/domain2/domain2.io.crt
SSLCertificateKeyFile /etc/apache2/ssl/domain2/domain2.io.key
</VirtualHost>
</IfModule>