Our old server had multiple IP addresses bount to the network card and had a website setup on each IP address.
Our new server has two sites setup on a single IP address.
Virtualhost works fine for HTTP but when accessing via HTTPS I always get the .co.uk pages (with a certificate warning).
Here is the relevant section from our HTTPS configuration :-
<VirtualHost *:443>
ServerName online.linguaphone.co.uk
DocumentRoot /var/www/
www.linguaphone.co.uk ServerAdmin webmaster@linguaphone.com
ErrorLog logs/online.linguaphone.co
.uk-ssl-er
ror.log
TransferLog logs/online.linguaphone.co
.uk-ssl-ac
cess.log
CustomLog logs/vbis/online.linguapho
ne.co.uk-s
sl-access-
vbis.log vbis
SSLEngine on
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+ME
DIUM:+LOW:
+SSLv2:+EX
P:+eNULL
SSLCertificateFile conf/certificates/2004_onl
ine.lingua
phone.co.u
k.crt
SSLCertificateKeyFile conf/certificates/2004_onl
ine.lingua
phone.co.u
k.pem
SSLVerifyClient none
SSLVerifyDepth 10
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
</VirtualHost>
<VirtualHost *:443>
ServerName online.linguaphone.com
DocumentRoot /var/www/
www.linguaphone.com ServerAdmin webmaster@linguaphone.com
ErrorLog logs/online.linguaphone.co
m-ssl-erro
r.log
TransferLog logs/online.linguaphone.co
m-ssl-acce
ss.log
CustomLog logs/vbis/online.linguapho
ne.com-ssl
-vbis.log vbis
SSLEngine on
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+ME
DIUM:+LOW:
+SSLv2:+EX
P:+eNULL
SSLCertificateFile conf/certificates/2004_onl
ine.lingua
phone.com.
crt
SSLCertificateKeyFile conf/certificates/2004_onl
ine.lingua
phone.com.
pem
SSLVerifyClient none
SSLVerifyDepth 10
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
</VirtualHost>
When I restart apache I get the following warning which I assume is the cause of the problem:-
[warn] _default_ VirtualHost overlap on port 443, the first has precedence
I have commented out the default virtualhost in /etc/httpd/conf.d/ssl.conf
except for the following lines:-
LoadModule ssl_module modules/mod_ssl.so
Listen 0.0.0.0:443
AddType application/x-x509-ca-cert
.crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
SSLSessionCache shmcb:/var/cache/mod_ssl/s
cache(5120
00)
SSLSessionCacheTimeout 300
SSLMutex file:logs/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLCryptoDevice builtin
Start Free Trial