1
00:00:00,330 --> 00:00:06,420
Here we are going to discuss some other apache configuration options, which are very important, one

2
00:00:06,420 --> 00:00:07,680
is the indexes option.

3
00:00:07,920 --> 00:00:09,700
Second is redirect option.

4
00:00:10,170 --> 00:00:15,520
Then again, we are going to use the same lab that we used for IP based virtual hosting.

5
00:00:15,540 --> 00:00:22,530
That mean we have got three IP addresses where we have launched three sites and we have got three directories example1,

6
00:00:22,530 --> 00:00:24,270
example2 and example3.

7
00:00:24,690 --> 00:00:29,550
And by default, we have created one index.html file there.

8
00:00:29,760 --> 00:00:35,970
And we have got C10 and C20 as client system for testing that lab set up.

9
00:00:36,450 --> 00:00:39,900
So what is basically indexes option?

10
00:00:40,110 --> 00:00:47,160
The indexes option instructs the Web server to display the directory listing if index file is not present.

11
00:00:47,520 --> 00:00:53,850
This options further depends upon the Directoryindex option, which helps Web server in deciding which default

12
00:00:53,850 --> 00:00:59,490
page to display. the default is index.html.

13
00:01:00,030 --> 00:01:01,200
What is the meaning of that?

14
00:01:01,500 --> 00:01:09,180
That if Web server is not going to find the index.html file in the directory from which it is serving

15
00:01:09,180 --> 00:01:12,750
the content, then it will display the contents of the directory.

16
00:01:12,760 --> 00:01:18,810
sometime this behavior is not desire, so we may want to negate this option.

17
00:01:19,230 --> 00:01:26,100
So in our case to properly understand what we are going to do, we will go to the /var/www/html/

18
00:01:26,220 --> 00:01:28,350
example2 directory.

19
00:01:28,350 --> 00:01:32,640
We are going to further create two directories, mkdir test soft.

20
00:01:33,180 --> 00:01:39,660
We will go into the test directory and we will create two empty files by using touch command t1 and t2.

21
00:01:39,660 --> 00:01:43,500
And then we will enter into the soft directory there.

22
00:01:43,500 --> 00:01:45,030
We are going to create.

23
00:01:45,390 --> 00:01:47,970
again two files s1 and s2 by using touch command.

24
00:01:47,970 --> 00:01:53,610
then we will come back one hand back.

25
00:01:53,610 --> 00:01:59,270
Then again we will again come back to example2 directory and run this tree command.

26
00:01:59,290 --> 00:02:02,750
whole directory structure will be visible.

27
00:02:03,450 --> 00:02:11,910
Now we want to see why we have created these directories and whether the clients will be

28
00:02:11,910 --> 00:02:17,250
able to view these directories or not when we are going to access example2.com.site.

29
00:02:17,250 --> 00:02:17,480
So.

30
00:02:18,120 --> 00:02:26,280
So we have to configure httpd.config file for that whether users are able to see that soft directory

31
00:02:26,280 --> 00:02:26,760
or not.
