oyebenny
By:
oyebenny

Is it possible to host multiple domains/ Wordpress sites in the One-click app Wordpress??

March 12, 2017 132 views
WordPress LAMP Stack MySQL Ubuntu 16.04

If I'm trying to host multiple sites on a single droplet, would it be better to use the One-click apps Wordpress 4.7 on 16.04 or the LAMP on 16.04?

1 Answer

@oyebenny

Both will allow you to host multiple sites -- the main difference is that the one-click will pre-install your first WordPress instance, whereas with the second, you'd need to set this up on your own.

To run multiple sites on a single droplet (regardless of which you choose) you'd need to create a new VirtualHost for each site. A VirtualHost block tells Apache what port to listen in on, what domain you'll be using, where to look for files, etc.

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04

The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 16.04 server.
Have another answer? Share your knowledge.