Easiest, and cheapest, is probably to use one of the many tools and get a Letsencrypt certificate. I'm using it on my VPS and home connection for various websites I run on them. Set up once, and let it automagically refresh the certificates (they're only valid for 3 months) then never be bothered again (unless the refresh failed for some reason).How do I get a server certificate?
That's Apache's default HTTP website.I've only ever used Apache in the past and always got 'It works!' as soon as I started it up.
your-domain.com {
root * /usr/local/www/nextcloud
file_server
php_fastcgi 127.0.0.1:9000 {
env front_controller_active true
}
encode gzip
}
Yes, I often use that trick to test sites that haven't been made public yet.Would an entry for my domain in /etc/hosts be sufficient?
192.168.10.10 mysite.example.com
I figured Certbot out manually when it first came out I think 2016; I found the Standalone option easiest (no plugins or anything else handling; webserver shuts down, Certbot deploys its own webserver and puts cert files in a folder, then restart main webserver pointing to the cert files)According to Chatgpt - I had to use that since I don't know where else to look.