Pasang SSL untuk SEO di Ubuntu Linux

Masuk di root dengan ssh :

Installing Let’s Encrypt Repository

Clone the repo

If git isn’t installed on your droplet, install it using this command

sudo apt-get -y install git

and then run this command to clone the repository

sudo git clone && cd letsencrypt && sudo mv /usr/local/bin/qfssl && sudo chmod +x /usr/local/bin/qfssl

// The repo will be copied to your system under **/usr/local/bin** and will be made executable. And you don’t need to do anything ????


install SSL to Your Domain

Here are the simple steps to install SSL on your WordPress installation.

For main domains

(Don’t include www with your domain)

Visit serverpilot > Server > App, write down the app name, now type the following command in the putty and hit enter.

qfssl install app_name main

Note: Either if your site is www or naked, use the above command it will issue SSL for and


For sub domains

If you run your website with subdomain like, etc.

qfssl install app_name sub


It will be auto renewed, but you can renew manually by giving “letsencrypt renew” command if SSL is expiring in next 30 days or less.

Take : renew automatic with cron job every day on: 03:15 am

terminal > root:

sudo crontab -e
15 3 * * */usr/local/bin/qfssl letsencrypt renew


Htaccess Changes.

If your site runs at www

You may want to redirect http, https:// to secure https://www, use the following code and add it to your .htaccess file.

RewriteCond %{HTTPS} !on [OR]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule (.*){REQUEST_URI} [L,R=301]

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *