1
00:00:00,270 --> 00:00:02,410
Now, let us test the indexes option.

2
00:00:02,730 --> 00:00:08,970
So first, what we will do, we will go to our C10 system, in C10 system.

3
00:00:09,720 --> 00:00:11,430
elinks --dump 

4
00:00:13,390 --> 00:00:17,350
http://172.24.0.2

5
00:00:19,210 --> 00:00:28,630
because we made the changes and we created a directory structure in example2 directory let me

6
00:00:28,630 --> 00:00:37,840
show also, where we created that, we made the setting in example2 directory, example2 directory

7
00:00:37,850 --> 00:00:44,440
is for which site example2.com or 172.24.0.2

8
00:00:45,190 --> 00:00:54,470
So we will go there and we will try to access, it is displaying the page because index.html file 

9
00:00:54,490 --> 00:00:55,900
is present there.

10
00:00:56,620 --> 00:01:03,190
Then what we are going to do, we are going to specify the test. what it is saying.

11
00:01:03,340 --> 00:01:11,530
forbidden, you do not have the permission to access the server, because what we have done here we have

12
00:01:11,530 --> 00:01:13,810
specify the option -indexes.

13
00:01:14,560 --> 00:01:16,420
Then we will go to the soft directory.

14
00:01:17,800 --> 00:01:19,420
Let me first clear this screen.

15
00:01:21,290 --> 00:01:25,190
Then we are going to specify soft here.

16
00:01:27,890 --> 00:01:35,630
now it is displaying the directory structure, because what we have done, we have specify the "option index"

17
00:01:35,630 --> 00:01:35,900
es.

18
00:01:36,740 --> 00:01:45,140
So option indexes will decide whether to display the directory structure or not, and further it

19
00:01:45,140 --> 00:01:51,830
will dependant upon your whether the index.html file is president or not.

20
00:01:52,280 --> 00:01:57,950
So in this case, index.html was not present in this case.

21
00:01:57,950 --> 00:02:00,110
Also, index.html was not present.

22
00:02:00,500 --> 00:02:08,550
But when we see on /var/www/html/example2, their index.html was present.

23
00:02:08,930 --> 00:02:15,060
So when we were just accessing 172.24.0.2 it was displaying us the page.

24
00:02:15,770 --> 00:02:21,820
So that was the testing of our indexes option that mean it is working properly.
