By jmilldotdev
Hello, I am currently running a Next.js frontend deployed to Vercel, and I am using the Vercel nameservers to manage the domain.
Now, I want to deploy Ghost CMS to a DigitalOcean droplet on a subdomain, and thus have the admin interface at https://cms.domain.com/ghost
My A DNS records in Vercel look as follows:
| Name | Value |
|---|---|
| @ | [vercelIP] |
| cms | [DO droplet IP] |
when i attempt to install the https://marketplace.digitalocean.com/apps/ghost droplet and set it up, it fails to generate a SSL certificate, and it seems like it cannot use the root domain’s certificate from Vercel if i just provide the IP to the setup script
I am very green with DNS stuff so if anyone knows how i can achieve this setup that would be great.
I am trying to do this because I would not like a user to be able to go to https://domain.com/ghost and be able to see the CMS login. Additionally, if the user goes to https://domain.com first, then to https://domain.com/ghost, a 404 will be returned until the cache is cleared. This is why i am trying to put the ghost CMS on a subdomain.
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!
Accepted Answer
Hello,
I believe that it is important to do the process in a specific order, what I could suggest is doing is:
cms subdomain to point to that new Droplet’s IP addresswww.cms.domain.com to point to cms.domain.com, that way you would have the www version also coveredLet me know how it goes. Regards, 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.