I set up Apache2 and two virtual hosts, one for port 80 ant the other for 443. Certs were installed and conf files look good, including listen.conf, however, while the site loads in a browser on port 80, once switched to https the browser errors out with "...can't establish a connection to the server at www.servername.com".
On the server side I have no errors in the apache error logs and nothing in /var/log/messages.
The vhost entry is thus;
<snip> <VirtualHost *:443> DocumentRoot /srv/www/htdocs/www ServerName www.servername.com:443 ServerAdmin me@localhost ErrorLog /var/log/apache2/www_error_log LogFormat "%v %h %l %u %t "%r" %>s %b" common CustomLog /var/log/apache2/www_access_log common <Directory "/srv/www/htdocs/www"> allow from all Options -Indexes </Directory> SSLEngine on SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite ALL:!aNULL:!eNULL:!SSLv2:!LOW:!EXP:!MD5:@STRENGTH SSLCertificateFile /etc/apache2/.ssl/servername.com.crt SSLCertificateKeyFile /etc/apache2/.ssl/servername.com.key SSLCACertificateFile /etc/apache2/.ssl/gd_bundle.crt </VirtualHost> <snip>
<snip> Listen 80
<IfDefine SSL> <IfDefine !NOSSL> <IfModule mod_ssl.c>
Listen 443 # Listen 10.10.0.50:443
</IfModule> </IfDefine> </IfDefine> <snip>
There firewall is off on the server as it is only accessible on the local network.
Any ideas on what I can do to get this working?
Many thanks in advance.