If you are hosting more than one site on a server, then you most likely use Apache’s virtual host files to state which domain should be served out. Name based virtual hosts are one of the methods used to resolve site requests. This means that when someone views your site the request will travel to the server, which in turn, will determine which site’s files to serve out based on the domain name. Using this method you’ll be able to host multiple sites on one server with the same IP.
In this video, we describe how to configure multiple sites with Apache.
mkdir -p /var/www/domain.com/public_html
echo "testing domain.com" > /var/www/domain.com/public_html/index.html
systemctl reload apache2
Video by: Justin Palmer
About the AuthorMore Content by Liquid Web