Setup Free SSL for WordPress on Google Cloud (Bitnami)

No Comments

Setup Free SSL for WordPress on Google Cloud. In this quick-start tutorial you will learn how to configure free, auto-renewing SSL certificates for WordPress websites hosted on Google Cloud Platform compute engine using the Bitnami version of WordPress on Google Cloud Platform.

If you’re using the Click-to-Deploy version of WordPress on Google Cloud Platform, you can view that SSL certificate tutorial here.

Before getting started with this tutorial, you should have already:

  1. Installed WordPress on Google Cloud
  2. Set up a Domain Name for your website

Now that you’ve connected to your VM instance, the next step is to copy and paste the certificate issuing command into your terminal. Remember to replace YOURMAIL, YOURDOMAIN, and www.YOURDOMAIN with the correct values.

For example, if your email address is [email protected] and your domains are and, then your certificate issuing command would look like this:

sudo /opt/bitnami/letsencrypt/scripts/ -m [email protected] -d -d

3. Configure SSL Certificates

Now that you’ve entered the certificate issuing command, you will be prompted with a series of questions. For each of the three questions, press y and then press Enter.

4. Configure HTTPS Redirect

Now that that the certificates have been configured, the next step is to configure a redirect in your bitnami.conf file in order to redirect all traffic to the HTTPS (secure) version of your website. To do this, copy and paste the command below in order to open the bitnami.conf file for editing.

sudo nano /opt/bitnami/apache2/conf/bitnami/bitnami.conf

Now that you’ve opened the bitnami.conf file for editing, copy and paste the the three lines of code below, in the same location as shown in the picture (remember to replace with your own domain name). After editing the file, press CTRL+X then Y to save and exit the file.

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*)$1 [R,L]

5. Restart Apache Server

In order for the recent file changes to take effect, you must restart your Apache server. To do this, copy and paste the command below into your terminal.

sudo /opt/bitnami/ restart apache

That’s it!

About Me:I'm the digital marketing specialist, competent in SEO (Google, Yahoo & Bing), Google Adwords (Search, Display, Google Shopping etc.), Facebook & Instagram Advertising etc. I can work in all platforms of digital marketing & advertise the legitimate products/services in a specific country, city or all over the world.

Request a free quote

We offer professional SEO services that help websites increase their organic search score drastically in order to compete for the highest rankings even when it comes to highly competitive keywords.

About us and this blog

We are a digital marketing company with a focus on helping our customers achieve great results across several key areas.

Subscribe to our newsletter!

    Leave a Comment

    No Comments