New User - Having trouble setting up Certbot/Apache2

Hi Everyone

I am new to Nextcloud, well home servers in general! I have installed Ubuntu Server 18.04 in a VM on Proxmox running on my Dell R710 and during the Ubuntu installation I chose to also install Nextcloud as an option. As far as I can work out this is a Snap installation.

I used to create a hostname to get back to my server, I opened ports 80 & 443 on my modem/firewall and when I type my hostname in a browser (i.e. I get to the log in page for Nextcloud, all good so far. I even managed to install the windows app and android app and got those working too. Great.

However, I was aware that this wasn’t a secure connection, my browser shows it as “not secure”. I followed these instructions - to install Certbot but then I encountered my first problem, when I browsed to my hostname I got the default Apache2 webpage! After much Googleing I managed to get it back to my Nextcloud log in, but only when Apache2 is stopped!! When it is running I get a 403 Forbidden, You don’t have permission to access this resource., Apache/2.4.29 (Ubuntu) Server at Port 80 message or “this site cannot be reached” when adding https:// to the start of the hostname.

Any help to get this fully working would be great, thank you.

Did you manage to get your certificate?

Did you try to access via https? If yes, then you must just redirect the http to https. I don’t know what the installation routine changed in your apache-configuration. Without a look into it, it’s hard to help you.

Thank you for your response.

As far as I can tell the certificate were installed, there were no obvious error messages.

I did try accessing via https but I get the “this site cannot be reached” browser error.

Can you advise where and what I should be looking for?