normally internal server errors means that the web server can’t reach one of the backend services (php, redis, db server, depends on your setup). did you check if they are available? what is in the apache2 log?
But it if I go the domain name for the site using the http:// it auto-redirects to https://
Not sure why, as in the local network, the http does not auto redirect to https.
Would yourself, or anyone, happen to know where Apache stores the redirect to https if you enter via the domain name?
I have tried using the acme.sh command again - It fails, as when it does the verification, it tries to make a folder under the root folder in apache, not the nextcloud folder.
I am not sure why its getting this wrong folder, as all the conf files in the apache folder all show the right folder name
EDIT - Managed to find out where the mistake was, it was a ENV path, fixed that and now I can get on the from the domain via http. But this did not fix my problem with the certificates. Marking this one as closed