How to get SSL/HTTPS

Nextcloud version: 27.1.2
Operating system and version Raspberry Pi OS (NOT nextcloudpi)
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version 8.2.11

The issue you are facing:
Just installed nextcloud using method two of this guide, got message:

  • Accessing site insecurely via HTTP. You are strongly advised to set up your server to require HTTPS instead, as described in the security tips :arrow_upper_right:. Without it some important web functionality like “copy to clipboard” or “service workers” will not work!

in admin panel. The link provided seems to assume my nextcloud instance can already use https, but changing the address to https:// makes the website fail. I’ve seen somewhere I need to get a Let’s Encrypt certificate, but can’t find any guides on how to do so (especially after I’ve already installed nextcloud.) My domain is from noip (replace something with the actual start of my domain.) Is there anyway I can find a guide for this? Thanks.

Is this the first time you’ve seen this error? Y

First it is not good to use a subdir e.g. It is better to use a subdomain e.g. or

For the configuration of a subdomain and configuration of TLS (HTTPS) you must configure your webserver e.g. apache2. You can read e.g. this documentation Search the apache2-part.

Regarding your point on subdir, I understand your suggestion, but am unsure about how to alter my existing nextcloud instance to use simply

Regarding your documentation, when using it I receive the following:

keith@raspberrypi:~ $ sudo certbot --agree-tos --redirect --hsts --staple-ocsp --email *my email here* -d
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Requesting a certificate for
Performing the following challenges:
http-01 challenge for
Enabled Apache rewrite module
Waiting for verification...
Challenge failed for domain
http-01 challenge for
Cleaning up challenges
Some challenges have failed.

 - The following errors were reported by the server:

   Type:   dns
   Detail: no valid A records found for; no valid
   AAAA records found for

The something I mentioned was the keithz shown. I am unsure about this error’s meaning and some searching merely shows it is a DNS error.