Host multiple websites on one domain/i.p address

August 6, 2013 5.1k views
How would I go about hosting another website on my droplet? I would like to be able to go to www.exampledomain.com and then have it point to another directory, so I can have a few different websites that have the same IP
3 Answers
you have to create virtual host
And how do you do that?
by Etel Sverdlov
This tutorial shows you how to set up a new directory, how to grant the correct permissions, how to add content to a new page, how to turn on virtual hosting, and how to, if needed, set up local hosts. Virtual Hosts are used to run more than one domain off of a single IP address and allows you to run multiple sites off of a single DigitalOcean droplet. This tutorial describes how to set up virtual hosts with Apache.
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!