By Zaeemah
I just set up a droplet and got its IP address. Now, I know for adding a domain under this droplet: I need to update the name servers of my domain from domain registrar. I did it.
1. Now, coming back to domain configurations, the hostname equals my domain name but, what is the meaning of custom Ip or droplet ip there? 3. Secondly, when I’ll sub domain under that domain then, hostname equals my subdomain.mydomain.etc but again, what would be the IP address next to it?
Please, clear me with these confusions. Looking forward to a response. Thank you!
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!
Hey there,
All the domains hosted on a Droplet would point to the same IP address. The web server software will interpret requests and send users to the right websites. If you are using Apache as your web server, this type of configuration is referenced as VirtualHosts. Here is a tutorial that talks about setting up virtualhosts on a Droplet, in other words, multiple sites hosted on a single Droplet.
Happy coding,
Jon Schwenn Platform Support Specialist DigitalOcean
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.