|
From: Jan S. <jst...@gm...> - 2012-07-10 08:50:03
|
Hi,
I've just configured mod_gnutls (Thanks for that great work!) and mostly
everything works fine.
There is only a small problem left:
I've configured 2 VHosts each with an own domain and an own SSL
Certificate. For the 1st VHost everything works correct - I can reach
the domain with- or without the www. Prefix (the right SSL Certificate
is delivered).
For the 2nd VHost, I can use the Domain with www. prefix and I get the
right cert. But if I'm trying to use the Domain WITHOUT www. the browser
gets the certificate from the 1st VHost (and therefore issues a SSL
Warning).
If I change the order of defining the VHosts, I have the problem on the
other Vhost (always the last defined), so I guess my certificates works
for both domains with- and without www.
I have serveral other VHosts with other SSL certificates but only one
Domain (sub.domain.tld) which should be used - they work fine too.
There is also nothing written in apache's error log :(
I would be very thankful for any help. You'll find my Vhost config
attached (and you can test the domains used in that config as they are
all public reachable).
Best regards
Jan
# the http variant for domain1
<VirtualHost *:80>
ServerName mitbringen.net
ServerAlias www.mitbringen.net
DocumentRoot "..."
</VirtualHost>
# the https variant for domain1 (works fine)
<VirtualHost *:443>
ServerName mitbringen.net
ServerAlias www.mitbringen.net
DocumentRoot "..."
GnuTLSEnable on
GnuTLSCertificateFile /var/www/mitbringen.crt
GnuTLSKeyFile /var/www/mitbringen.key
GnuTLSPriorities SECURE:!MD5
</VirtualHost>
# the mobile vhost for domain1 (works fine but has only one domain which
should be used)
<VirtualHost *:443>
ServerName mobil.mitbringen.net
DocumentRoot "..."
GnuTLSEnable on
GnuTLSCertificateFile /var/www/mobil.mitbringen..crt
GnuTLSKeyFile /var/www/mobil.mitbringen.key
GnuTLSPriorities SECURE:!MD5
</VirtualHost>
# the http variant for domain2
<VirtualHost *:80>
ServerName garaflo.de
ServerAlias www.garaflo.de
DocumentRoot "..."
</VirtualHost>
# the https variant for domain2 (www.garaflo.de works fine, garaflo.de
returns the wrong certificate (for mitbringen.net)
<VirtualHost *:443>
ServerName garaflo.de
ServerAlias www.garaflo.de
DocumentRoot "..."
GnuTLSEnable on
GnuTLSCertificateFile /var/www/garaflo.de.crt
GnuTLSKeyFile /var/www/garaflo.de.key
GnuTLSPriorities SECURE:!MD5
</VirtualHost>
# the mobile https variant for domain2 (works fine but has only 1 domain)
<VirtualHost *:443>
ServerName mobil.garaflo.de
DocumentRoot "..."
GnuTLSEnable on
GnuTLSCertificateFile /var/www/mobil.garaflo.crt
GnuTLSKeyFile /var/www/mobil.garaflo.key
GnuTLSPriorities SECURE:!MD5
</VirtualHost>
|