How To Set Up Multiple Website on Ubuntu 14.04 LTS with Apache2
Step One — Create the Directory Structure The first step that we are going to take is to make a directory structure that will hold the site data that we will be serving to visitors. Our document root (the top-level directory that Apache looks at to find content to serve) will be set to individual directories under the /var/www directory. We will create a directory here for both of the virtual hosts we plan on making. Within each of these directories, we will create a public_html folder that will hold our actual files. This gives us some flexibility in our hosting. For instance, for our sites, we're going to make our directories like this: sudo mkdir -p /var/www/ example.com /public_html sudo mkdir -p /var/www/ test.com /public_html The portions in red represent the domain names that we are wanting to serve from our VPS. Step Two — Grant Permissions Now we have the directory structure for our files, but they are owned by ...