So I was building my website on linode and wanted to get an SSL certificate so I installed certbot following the tutorial given. However once it was installed all I got was the “welcome to nginx page” and I could not get into my website. and when I called support they said that I was supposed to configure my website to take HTTPS before getting the certificate. So then I went ahead and deleted certbot and after that it just nothing came up for both my domain and IP but for the domain it still had HTTPS showing up. I tried reinstalling certbot using the following commands.
sudo apt install certbot python-certbot-nginx sudo certbot --nginx
However when I run the second line I get this error (ive also attached a picture)
Error while running nginx -c /etc/nginx/nginx.conf -t.
nginx: [emerg] open() “/etc/letsencrypt/options-ssl-nginx.conf” failed (2: No such file or directory) in /etc/nginx/sites-enabled/default:147
nginx: configuration file /etc/nginx/nginx.conf test failed
When I talked to support they said my website is still there but there is problems with my configuration, ive tried almost everything and was wondering if you can help me at least get back into my wordpress website.