Step One— Create a New Directory
First, it is necessary to create a directory where we will keep the new website’s information. This location will be your Document Root in the Apache virtual configuration file. By adding a -p to the line of code, the command automatically generates all the parents for the new directory.
You will need to designate an actual DNS approved domain (or an IP address) to test that a virtual host is working. In this tutorial, we will use example.com as a placeholder for a correct domain name.
sudo mkdir -p /var/www/example.com/public_html
*If you want to use an unapproved domain name to test the process, you will find information on how to make it work on your local computer in Step Seven. Continue reading “Set Up Apache Virtual Hosts on Debian 7” »