By developers
I recently purchased a Digital Ocean Droplet and need to connect it to a domain. I have a landing page available at example.com, but I want my frontend to send requests to the server that go to routes like example.com/api/something.
When I try and connect my domain to my Droplet it gives some DNS records to add, but it says my hostname is example.com. This isn’t going to make it so that my existing frontend can’t be accessed at example.com, right? Also, my backend is built in express/node.js, so does doing something like router.get(“/api/something”); automatically create that subdirectory, or do I have to explicitly create it?
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 @developersray,
Depending on what you are using - Apache/Nginx and additionally, Django, Laravel, etc. you’ll need to configure that there.
What I’ll recommend is to either post what you plan to use here or give it a bit more research on the web on how to setup it.
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.