By Devid Strom
Hello Guys So here is my question is i used godaddy hosting in past and there are direct option to create subdomain via cpanel but in digital ocean how can i create subdomain for my website (Paraphrasing Tool) and i also i think i have some speed issue also please help me guys. :(
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!
When you create a new subdomain in cPanel it performs a few steps. Without the control panel automating these there is a little more work to do. To create a new subdomain for your droplet and ensure that it is routed correctly by your web server (serving the content in the correct folder) you can follow the following steps:
Create a new “A” or “CNAME” record for your subdomain in the DNS section of the control panel (Networking->DNS) or if you are hosting your DNS elsewhere you can create the new record there. [This guide] covers how to use the DO DNS services and the steps needed to create an “A” or “CNAME” record on your domain.
Create a new virtualhost/server block on your web server. Now we need to tell our web server what to do if it receives a request for sub.example.org since it was only serving example.org previously. We do this by creating a new Virtualhost (Apache) or Server Block (Nginx) that will tell the web server what to do with a request depending on what name is being requested.
This guide covers setting up virtualhosts in Apache. This guide covers setting up server blocks in Nginx.
Hello, I could not make my subdomain work with these steps Hello, I could not make my subdomain work with these steps. please help
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.