Need help with setting up a subdomain on CentOS7.
Using namecheap for the domain registrar; I set up an A registry for sub.domain.com
I can’t figure out how to get it to point to a directory on my digitalocean droplet.
Do I just do it like a normal virtual host? I attempted that and it failed.
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 @ElmerG,
You were on the right path, yes you would need to configure your subdomain as a normal virtual host for a separate domain. Depending on the Web Server you use, you’ll need to configure it differently. I can confirm this is related to your Apache/Nginx rather than the OS version.
If you are having trouble, post you Web Server and virtual host you tried to create to see what might be the problem.
Kind regards, Kalin
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.