So, again, for an IP based virtual hosting we need to go to /var/www/html directory and there we need
to create three directories example1, example2, example3, so that we can serve the different
websites and we have to put some material into these directories.
And in our case, in all the three directories, we are going to put index.html and with the Tree command,
we can verify the whole directory structure.
But we will not be doing this in this lab setup because we have already created directory structure in previous
lab.
So we are just going to go into our /var/www/html directory and we are going to run the Tree coomand
we will see whether the whole directory structure is in place or not.
And then we will check also whether our that Web page, they contained material or not.
So let us verify that whole directory structure is in place or not.
So we will go to our master system and we will enter into your /var/www/html directory with list command.
You can verify that all the directories are there, but tree command is much more useful.
So it is showing that the whole directory structure is in place.
You can view the files also whether they are okay or not.
So it is showing you the page that mean welcome to example1 site.
And when we open this in example2 directory again, it is going to show one page, different message.
Welcome to example2 site.
Then let us check about the.
third site also, so our whole directory structure is in place, so no issue regarding that.
So now we need to configure our httpd.conf file file for launching our IP based virtual hosting.