I have recently created an SSL cert on my server *.key and a *csr file.
I then created the *crt and the *.ca-bundle with Comodo.
I have 2 current vhosts:
vhost for - http://www.example.com
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin
[email protected]
DocumentRoot "/home/example/public_html/example.com/httpdocs"
ServerName example.com
ServerAlias www.example.com
</VirtualHost>
vhost for https://www.example.com
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/example_com.crt
SSLCertificateKeyFile /etc/ssl/certs/server.key
<Directory /home/example/public_html/example.com/httpdocs>
AllowOverride All
</Directory>
DocumentRoot /home/example/public_html/example.com/httpdocs
ServerName example.com
</VirtualHost>
The problem is, when I go to https://www.example.com I get a 404
I'm not sure if the vhost(s) is correct or why I get a 404. Has anyone ever seen this before?
I have enabled mod_ssl and restarted apache
Many Thanks