How to enable SSL/HTTPS for Nextcloud?

In this simple tutorial, we will show you how quickly you can enable free SSL that Cloudamo provide for all clients.

STEP 1:

Over cPanel > File Manager > public_html > click to edit file: .htaccess and at top of file add this simple code:

Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

That is all, your Nextcloud install will now load over https://

  • ssl, secure, security, enable
  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

Can I personalize my cloud - own design, color, logo ?

Yes, this is possible with all packages. At Nextcloud you have the so-called "Theming" function....

Can I use my own domain ?

You can use your own domain/subdomain at any time with all packages. You can either order one, or...

Can I mount the cloud using Webdav without Sync Client ?

This is possible at any time. Of course, you can also use other synchronizing tools, such as...

Unlimited users/groups and own apps ?

That's right. You can set unlimited user and groups, as well as use all available apps. The only...

How can I erase my cloud and terminate my account ? Right to be Forgotten

You can terminate your service at any time, with only a few clicks in the customer panel at MY...