Digital Ocean Droplet to point to subdomain

Posted November 29, 2017 2.1k views

Can you please help me with DNS set so that my domain directs to my droplet? I know how to do this for a domain, like pointing to droplet XXXX. However, I do not know how to do this from

Pleade help bearing in mind that I am a total noob on these things :)


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.

Submit an Answer
1 answer

A subdomain is something like this:

A sub-folder is what you are describing:

Subdomains are routed based on DNS, you can create one and point it to any IP address. A sub-folder is a folder on the server that DNS has pointed to. You cannot use DNS to point a sub-folder to another server. If this configuration is absolutely vital and a subdomain will not do then one way to achieve this would be to create a droplet running Nginx and then create a reverse_proxy configuration for the folder name so that nginx loads content from another server or site.

If you can work with a subdomain it is just a matter of creating an A record with your DNS provider with the name you want and pointing to your IP address.