Skip to main content
1 of 2

How can I use a different A record for a specific path?

I have a domain and my landing page is displayed at mysite.com, but I also need this to be the domain for my Digital Ocean Droplet which hosts the Node.js backend for my React apps. However, I'm having some trouble using the domain with both services. Digital Ocean suggested setting up the nameserver so that the DNS settings can be managed through Digital Ocean, so that's what I did.

I basically transferred all my DNS records from my Google Domains account to the Digital Ocean DNS manager and for the most part everything looks fine. If I go to mysite.com I can see my Webflow site. But if I go to mysite.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 Ocean 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.