By sbrycebarker
I have several domains connected to my server, when i run
sudo certbot --nginx
only one of my domains can be found. is there a step I am missing. Its been a while since I have worked on this
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!
Hello friend!
When you say the domain cannot be found, do you mean that it is not trying to apply a certificate to one of your defined domains, or it’s giving an error stating that the domain’s DNS cannot be found?
Kind Regards, Jarland
it is not trying to apply a certificate to the domains. It can only find one. I have several being hosted on this droplet
root@PortfolioProjects:~# sudo certbot --nginx Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator nginx, Installer nginx Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Which names would you like to activate HTTPS for?
1: ********.com
Select the appropriate numbers separated by commas and/or spaces, or leave input blank to select all options shown (Enter ‘c’ to cancel):
If using nginx for a django, I found I has used the same upstream for two domains and this caused one not to show up in the certbot list. this was the duplicated code that needed to be unique for each subdomain, had used wwwskorie twice::
upstream wwwskorie {
server unix:///home/django/sockets/some_uwsgi.sock ;
}
....
uwsgi_pass wwwskorie ;
include /etc/nginx/uwsgi_params ;
}
Also occurs if you have duplicated server_name
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.