Question

My SSL certificate is not being served when visiting my site

Posted May 19, 2015 2.2k views
UbuntuApacheWordPress

I am running WordPress Multisite on Ubuntu 14.04.

I am using a multi-domain certificate

The certificate is meant for a site within my multisite network (rather than the main domain name of the wordpress server/site).

I followed the Digital Ocean tutorial that can be found at:
https://www.digitalocean.com/community/tutorials/how-to-install-an-ssl-certificate-from-a-commercial-certificate-authority

However, I am NOT forcing redirects from http -> https


Currently the server is delivering a self-signed SSL certificate when I access a page on my site securely (https).


I would appreciate some assistance. I can’t even figure out how to diagnose the problem.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

In order to redirect http to https for your site, you could add the following rewrite rule in the port 80 Vhost for your domain name:

RewriteEngine on
RewriteCond %{SERVER_NAME} =example.com [OR]
RewriteCond %{SERVER_NAME} =www.example.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

As you are using Wordpress, I would recommend updating your site and home URLs to https as well.

Regards,
Bobby

Submit an Answer