Virtual hosts created, now what?

Hi everyone, hope you can help.

I have created the virtual hosts in /var/www using the apache virtual host tutorial but now I’m clueless. Could I just copy the files from html and paste it to this intended domain folder? and how do I find the link to access the other hosts? Confused and new to this so if anyone could walk me through it like I’m a child please? Thanks in advance.

Regards, Tye

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.

You don’t need to create your virtualhosts inside the /var/www directory. That is used for the website files itself. Follow this tutorial exactly, and you should be able to connect to your site with your domain name. Keep in mind , you also need to or

  • Transfer the nameservers of your domain from your registrar to digitalocean and manage them here
  • Make an A / CNAME record inside the CP of your registrar wich has the host of your DO droplet IP