Here we are going to discuss some other apache configuration options, which are very important, one
is the indexes option.
Second is redirect option.
Then again, we are going to use the same lab that we used for IP based virtual hosting.
That mean we have got three IP addresses where we have launched three sites and we have got three directories example1,
example2 and example3.
And by default, we have created one index.html file there.
And we have got C10 and C20 as client system for testing that lab set up.
So what is basically indexes option?
The indexes option instructs the Web server to display the directory listing if index file is not present.
This options further depends upon the Directoryindex option, which helps Web server in deciding which default
page to display. the default is index.html.
What is the meaning of that?
That if Web server is not going to find the index.html file in the directory from which it is serving
the content, then it will display the contents of the directory.
sometime this behavior is not desire, so we may want to negate this option.
So in our case to properly understand what we are going to do, we will go to the /var/www/html/
example2 directory.
We are going to further create two directories, mkdir test soft.
We will go into the test directory and we will create two empty files by using touch command t1 and t2.
And then we will enter into the soft directory there.
We are going to create.
again two files s1 and s2 by using touch command.
then we will come back one hand back.
Then again we will again come back to example2 directory and run this tree command.
whole directory structure will be visible.
Now we want to see why we have created these directories and whether the clients will be
able to view these directories or not when we are going to access example2.com.site.
So.
So we have to configure httpd.config file for that whether users are able to see that soft directory
or not.