I have two droplets and one of them was assigned to my domain (domain.com). It was deployed directly (without docker or kubernetes) and nginx was secured with let’s Encrypt. In my second droplet, a project was deployed as an image. I want to assign that image as a subdomain (like subdomain.domain.com) and generate an ssl certificate for it. Is it possible to use projects in different droplets in one domain as subdomain and give ssl certificate?
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!
Hi @FriendlyLightSeaGreenBoat,
Yes, it’s possible. All you need to do is create an entry for your Subdomain in your DNS zone and point it to the droplet you want.
Once you have the droplet there, what you can do is use Let’s Encrypt again the same way you’ve used it to encrypt your first Droplet.
Hi there,
Yes, this should not be a problem at all. As your subdomain name would be hosted on a Droplet, you can follow the steps on how to issue a free Let’s Encrypt SSL certificate here:
In order for Let’s Encrypt to be able to validate your subdomain name, you need to set the A record for your subdomain pointing to the Droplet’s IP address.
Hope that this helps!
Best,
Bobby
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.