Now let us edit this httpd.config file, according to what we have discussed, so we will go to the
master system.
We are going to open that our configuration file httpd/conf/httpd.conf
So we will go to the end of the file, at the end of file.
We are going to insert.
So first entry is your NameVirtualHost 172.24.
0.1.
then what we are going to, we are going to add the stanga VirtualHost, that means all the
site we want to launch on 0.1 address, then we are going to specify the ServerName parameter
that is going to be www.example1.com, then DocumentRoot is again.
very important directive Document.
Root, so from where we want to serve /var/www/html/example1 directory
then we going to close that section, VirtualHost.
Now we are going to copy paste these four lines.
4yy, then we are going to be paste again, we are going to paste.
Then we are going to make the changes that mean first stanga is OK, then here we are going to
specify example2.com from where it is going to serve from example2 directory.
Then the third website is, for example3, and we are going to serve the material from example3.
Then we are going to save this file.
Now, you can view that with that tail command.
we're going to see - the number of lines.
So this is the file we have made the changes according to what we have discussed, so again, let
us check whether something, everything is OK, NameVirtualHost it is OK, then VirtualHost 172.
24.0.1, because we want to launch all the sites on this address.
Then we have to specify the name of three sites and from where we are going to serve the material.
So we have, according to what we have discussed, we have made the changes in our httpd.
config file.