I had one droplet and a domain.
I rebuilt the existing Droplet and added a new one.
Now I have two droplets and a domain.
I added four ‘A’ DNS records:
pontres.com: 188.8.131.52, www.pontres.com: 184.108.40.206, in.pontres.com: 220.127.116.11, www.in.pontres.com: 18.104.22.168
When I try to generate a letsencrypt certificate on Droplet-2, I get the following error:
pontresadmin@pontres-main:~$ sudo certbot --nginx -d pontres.com -d www.pontres.com Saving debug log to /var/log/letsencrypt/letsencrypt.log Requesting a certificate for pontres.com and www.pontres.com Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems: Domain: pontres.com Type: connection Detail: 22.214.171.124: Fetching http://pontres.com/.well-known/acme-challenge/hbIJEsYdTYO4-tK7vSJDKuRtK3CL-LBj60wrf4g3Pmc: Connection refused Domain: www.pontres.com Type: connection Detail: 126.96.36.199: Fetching http://www.pontres.com/.well-known/acme-challenge/x9yW9YD7f9s90JomFoRtSWAKpXelf9CI1eeG6KZHqz0: Connection refused Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.
When I perform a DNS lookup using
in.pontres.com, both points to the Droplet-2 IP.
I want the traffic for pontres.com to be redirected to Droplet-2 and
in.pontres.com to be redirected to Droplet-1.
What am I doing wrong?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.