I am running Ubuntu 16.04.4 x64 on DigitalOcean. Iâve successfully setup nextcloud and added my domain âexample.comâ to my droplet. However, I also want to add âwww.example.comâ to my trusted domain list. Whenever I try to follow the standard procedure, it seems that I can only choose one of them: either the one without âwwwâ or the one with. Is there a way I can add both of them as trusted domains and get the Letâs Encrypt certificate for both?
For a certificates from letâs encrypt for two full qualified domain names for one web server, you need to use the newly announced and just supported wildcard certificates (like *.example.com):
These wildcard certificates are supported with certbot 0.22.0.
Regarding your question about trusted domains: actually you only need to add further trusted domains in the config.php of Nextcloud.
Unfortunately I donât know digitalocean and how you can access your server files. I would assume that you can at least access your config.php file via (S)FTP.
In that case you could do the following:
access your server with a (S)FTP client
navigate to the nextcloud installation directory (maybe you login directly to that directory)
in that nextcloud directory look for the directory âconfigâ and enter that directory
there you should see the config.php
either edit that file with your ftp client directly if your software allows that or download it
either way, make your changes as suggested and save/ re-upload the file
reload your website
That should be it.
You donât have SSH access, right?
With SSH access you could login to your server and edit that file directly on the server with the editors vi or nano (as you prefer).
You are as confused as I was. âtrusted_domainsâ isnât about domains at all, not in the sense of how you access the nextcloud instance. A better term would be âtrusted_nameâ since whatâs looked for is the name of the server instance: cloud.wossname.com or whathaveyou. The point is to defeat header malfeasance so the name of the instance is whatâs needed. I expected it to be about the domain that could access it but it doesnât take domains, not as .wossname.com or as 192.168.0..