How to Create Subdomain For My Blog on Digital Ocean

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. :(

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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:

  1. 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.

  2. 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 since it was only serving 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