How to Configure Multiple Sites with Apache

July 29, 2020 Liquid Web

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.

Commands used:
mkdir -p /var/www/domain.com/public_html
echo "testing domain.com" > /var/www/domain.com/public_html/index.html
a2dissite 000-default.conf
a2ensite domain.com.conf
systemctl reload apache2

Video by: Justin Palmer

About the Author

Liquid Web

Liquid Web powers online content, commerce, and potential for SMB entrepreneurs and the designers, developers and digital agencies who create for them. Sign up for our newsletter to stay up to date with our latest content.

More Content by Liquid Web
Previous Video
How to Install React JS On Windows
How to Install React JS On Windows

In this video, we demonstrate how to install ReactJS on Windows.

Next Video
Deleting Tables from a Database with PhpMyAdmin
Deleting Tables from a Database with PhpMyAdmin

In this video, we describe how to delete a table from a database in PhpMyAdmin.

Learn What Qualities to Look for in Your Next Host in Our New Guide!

Download Now