The Story:
We have a server with nginx with url (meet2) that has a redirect meet1 -> meet2. We have since created a better server and setup meet3. I would like to change the redirect from meet1 -> meet2 to meet1 -> meet3 taking meet2 out of the equation.
I have:
-
updated the meet1 A record to reflect meet3 server IP
-
created nginx config on meet3 server:
server {
listen 80;
server_name meet.ducharme.co.za;return 301 $scheme://meet3.ducharme.co.za$request_uri;
}
But I am failing the domain challenge.
I assumed with the A Record IP update on meet.ducharme would be sufficient.
Any help would be appreciated.
Thank you in advance.
My domain is:
meet.ducharme.co.za
meet2.ducharme.co.za
meet3.ducharme.co.za
I ran this command:
sudo certbot --nginx -d meet.ducharme.co.za -d www.meet.ducharme.co.za
It produced this output:
Challenge failed for domain www.meet.ducharme.co.za
My web server is (include version):
Nginx (Latest) - (EDIT) nginx/1.18.0 (ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 22.04
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.40.0