I created a staging site with a self signed certificate using:
mkdir /etc/ssl/wildcard.yourdomain.com
cd /etc/ssl/wildcard.yourdomain.com/
openssl genrsa 2048 > host.key
openssl req -new -x509 -nodes -sha1 -days 3650 -key host.key > host.cert
openssl x509 -noout -fingerprint -text < host.cert > host.info
cat host.cert host.key > host.pem
chmod 400 host.key host.pem
sudo a2enmod ssl
sudo service apache2 restart
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/ssl/wildcard.yourdomain.com/host.pem
SSLCertificateKeyFile /etc/ssl/wildcard.yourdomain.com/host.key
(from http://blog.justin.kelly.org.au/how-to-create-self-signed-wildcard-ssl-certificates-for-apache/)
The issue I"m having is that *.yourdomain.com is just hanging.
I set up
ServerAlias www.yourdomain.com
As well as
ServerName yourdomain.com
When I navigate to "yourdomain.com" it works as expected.
But when I type: https://www.yourdomain.com chromium says "Establishing a secure connection" in the bottom right hand corner,
I enabled mod_ssl debug level logging but nothing is being logged when I type in url with www
. My end goal is to redirect www
to my root domain https://yourdomain.com. Any help would be greatly appreciated.
I am using namecheap's free dynamic dns:
Hostname, IPADDRESS URL, RECORD TYPE, TTL
@ m.y.i.p A Address 1800
www https://yourdomain.com URL Redirect 1800
SUb Domain SEttings:
* https://yourdomain.com URL Redirect 1800
For subdomain settings, I also tried https://*.yourdomain.com
THank you
www
name? And can you show us the output ofapachectl -S
?