My SSL certificate is not being served when visiting my site

May 19, 2015 2.1k views
Apache WordPress Ubuntu

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.

7 Answers
[deleted]
[deleted]
[deleted]
[deleted]
[deleted]
[deleted]

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

Have another answer? Share your knowledge.