Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: oslopeace19.no
I ran this command:
sudo certbot --nginx -d oslopeace19.no
My web server is (include version):
nginx version: nginx/1.14.0 (Ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 18.04.3 LTS
I can login to a root shell on my machine (yes or no, or I don’t know):
Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
certbot 0.31.0
Hello, I wanted to move a WordPress site to a different domain, I set the new domian in WordPress and have verified that the domain is set correctly in the WordPress settings, then I added the new domain in my nginx conf file for the site and ran certbot on the new domain, but now whenver I try to access the new domain nginx just redirects me to the default site instead of the actual site I want to open. I’ve attached my nginx conf file, I’ve tried to make many, many changes to it to fix this problem so it may contain some weird things.
https://dpaste.de/9PwC
I tried writing the part from line 56-61 myself again and manually set the correct HTTPS certs, but this did not fix the problem.
output from ls of myt /etc/letsencrypt/live/oslopeace19 folder
ls oslopeace19.no
cert.pem chain.pem fullchain.pem privkey.pem README
the letsencrypt folder contains three certificates for this site, one for the development domain, and two that have come from my trying to run certbot
# ls| grep oslopeace
oslopeace19.fossekalltek.no
oslopeace19.no
oslopeace19.no-0001
Any ideas on what could be causing this issue?
edit: results from curl says the site is moved permanently
301 Moved Permanently
301 Moved Permanently
nginx/1.14.0 (Ubuntu)