Before we continue it's important to understand what we'll be doing in the next part of this course.
We're now going to be setting up virtual hosts that allow multiple domains to be served from a single
server.
To recap so far we've deployed a droplet installed Aposhian my SU ph P and ph my admin.
So let's go ahead and get started on working with virtual hosts.
It's important to understand that by default a pause she identifies the HD directory in the w w w folder
as the root folder for our web pages.
This means when someone visits our primary web site domain applause she will load the index dot h DML
file located in the DML directory.
Now when I say primary domain what I mean is if you're only hosting one domain on your web server if
your whole hosting multiple domain names then you don't have a primary domain.
Since we will be working with multiple domains each domain will need to point to its own unique directory.
So for example x y z dot com will need to load the default index page from the x y z dot com folder
that we create.
So here is a sample of the directory structure we're going to be creating.
In our w w w folder we're gonna create a directory for each domain name.
So for example if you had two domains.
This is exactly what your directory structure would look like.
The domain name is the folder name.
And then inside that folder we would have another folder called aged.
And inside the HMO folder would be all our Web site files.
OK.
And that's the same if you had a second domain.
That's exactly what it would look like except that the domain name would be different.
So instead of x y z dot com your second domain can be ABC dotcom.
So it's fairly straightforward and you can have 10 20 however many of these as you needed to have.
So if you're running a small hosting company you might have 100 clients where you can set up 100 directories
each with a different domain name.
So this is the first step before we actually go on to creating virtual hosts and we'll see you in the
next lecture.