I have a domain and my landing page is displayed at mysiteexample.com
, but I also need this to be the domain for my Digital OceanDigitalOcean Droplet which hosts the Node.js backend for my React apps. However, I'm having some trouble using the domain with both services. Digital OceanDigitalOcean suggested setting up the nameserver so that the DNS settings can be managed through Digital OceanDigitalOcean, so that's what I did.
I basically transferred all my DNS records from my Google Domains account to the Digital OceanDigitalOcean DNS manager and for the most part everything looks fine. If I go to mysiteexample.com
I can see my Webflow site. But if I go to mysiteexample.com/api
I'm just getting a 404 page not found (which is the same one I designed in Webflow). In other words, it doesn't look like I'm connecting to my Droplet with this domain because if I go to dropletip:port
I get Cannot GET /api
(which is expected since there's no /api
route).
Is it possible to use one domain for Digital OceanDigitalOcean and Webflow? Right now I have an A record that points to Webflow's IP address and my Droplet's IP address, but like I said, only Webflow's is being reached.