You could try dropping the :443
from both the ServerName
and the ServerAlias
or just from the sub-domain name www.fake.com
and see how it goes - trial and error may prevail here.
You have already told Apache to listen for any address on port 443 (https
- Code: Select all
Save the file and restart Apache to have your edits read.
Also familiarize yourself with your Apache error log files which can be found here on a default installation:C:\xampp\apache\logs\error.log
and here for your SSL VirtualHost:C:\xampp\apache\logs\fake.access.log
Drag and drop into your text editor to read or associate .log
file extensions with your text editor.
The SSL certificate you use can only be tied to fake.com
or another certificate tied to www.fake.com
or you could use a wild card certificate - normally only one domain (IP address) can be tied to one certificate and www is classed as a sub-domain (another domain).
As I see it http://fake.com and http://www.fake.com both resolve to your web site FAKE LANDSCAPES at your hosting service.
Neither of the SSL addresses resolve:
https://fake.com or https://www.fake.com with or without the :443 or the http or https bits used.
Seems to be a certificate issue perhaps.
The default SSL certificate in XAMPP is created for just https://localhost and can be found in C:\xampp\apache\conf\ssl.crt and if that resolves then the certificate and configurations are correct for localhost.
You can use the above existing ssl folders as templates or as examples.
You may have to create certificates for your local fake.com sites in XAMPP using C:\xampp\apache\bin\openssl.exe at a command prompt or in the Shell from the XAMPP Control Panel - at the openssl> prompt type ? for help with commands.