Installing Let's Encrypt with Nextcloud

letsEncryptLet's Encrypt allows you to secure traffic to your website.  This article describes how to encrypt a Nextcloud repository.


Create an SSL Certificate

You'll need to create an SSL Certificate for this domain.  Here's how to use Let's Encrypt with Siteground hosting.

 

Configure Nextcloud

  1. Navigate to the .htaccess file in the root directory.
  2. Open the file for editing.
  3. Insert the following on the first line.
# Force SSL for this site
RewriteEngine On
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

 

Thanks for visiting.