Hello 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 example.com pointing to droplet XXXX. However, I do not know how to do this from example.com/page/anotherpage/
Pleade help bearing in mind that I am a total noob on these things :)
Cheers Naz
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!
A subdomain is something like this:
something.domain.com
A sub-folder is what you are describing:
domain.com/something
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.
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.