Question

Having difficulty adding a new domain from new registrar.

Hello!

I used to develop websites back in the day when one would simply tell a domain registrar to point the domain at the host and away you went. It felt very easy back then, however, now I’m decades out of practice.

Currently, I’m helping a friend with his websites that were setup here by another person, and I’m desperately trying to play catch up… also… I’m old now, so this is quite frustrating!

The setup (as I understand it): Hosting - He has one droplet, and within that virtual machine are several folders. Each folder is a different website.

Domains - He has several domains with Liquid Web for said websites. They are configured their with A Records and other such stuff I’m only recently learning about.

The Problem: He has a new domain registered with Namecheap. I have the website uploaded into a new folder into his droplet. For the life of me I can’t figure out how to get that domain pointed to that folder.

The domain names that are on Liquid Web have A Records that point to his IP address.

An Attempt: I tried doing that on Namecheap, but it didn’t work.

Another Attempt: Namecheap and DigitalOcean’s tutorials say to use DigitalOcean’s nameservers in Namecheap, and then setup the domain and A Records in DigitalOcean. So I tried that, and now when I enter his domain name into a browser I get directed to the root folder of his droplet. Apparently, I can’t use an A Record to point to an internal folder. So, this attempt also seems like a bust.

A Question: How did the guy before me get DigitalOcean to direct each domain to their respective folders? I can’t find any configurations that hint to this anywhere.

Wrap-up: Like I said, I’m old and way out of practice when it comes to this setup stuff. I could really use some help, and some grace for my ignorance (and flat out stupidity). I feel like I can still run circles around most people when it comes to HTML and CSS, but this setup stuff really punches me in the gut!

So, thank you for your help!


Submit an answer


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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
March 20, 2025

Hey Joshua,

What you’re looking for is a web server configuration, not a DNS one.

DNS (via A records) just points the domain to the server’s IP. To send each domain to a specific folder, you need to configure your web server (like Nginx or Apache) to handle that routing.

That’s most likely how the previous person did it — they set up virtual hosts (Apache) or server blocks (Nginx) so each domain points to its own folder on the Droplet.

Here are tutorials for both:

Once that’s in place, DNS will do its job, and the web server will take care of sending visitors to the right folder.

Let me know what web server is running and I can help you with the exact config.

- Bobby

KFSys
Site Moderator
Site Moderator badge
March 20, 2025

Heya,

What you are referring to is the WebService. Basically, it tells which domain loads from which folder.

Now, first you need to see what is being used. Type in the console

netstat tulpen

It will show you applications that are listening to ports. You need to check port and 80 and 443. They should be having the same service listening on both ports. It will be either Apache or Nginx.

Once you know which one is it, check this article here:

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.