1
00:00:00,480 --> 00:00:07,960
Now, sometimes you wonder why we created the file name as index.html not some other file like abc.html.

2
00:00:09,630 --> 00:00:16,110
Now this parameter, which file we are going to create for the home page initially that will be decided

3
00:00:16,110 --> 00:00:23,740
by the DirectoryIndex directive, DirectoryIndex directive will decide which file will be searched in what

4
00:00:24,000 --> 00:00:26,460
order to be delivered to the client.

5
00:00:26,880 --> 00:00:36,750
So if we are going to view our httpd.config file and if we will see what our directive Directory

6
00:00:37,110 --> 00:00:40,050
index is contains you, we will see that here.

7
00:00:40,060 --> 00:00:41,730
One value is their 

8
00:00:41,730 --> 00:00:42,510
index.html.

9
00:00:42,870 --> 00:00:46,800
That is why we created our first file as index.html.

10
00:00:47,730 --> 00:00:54,190
So in this directive what is included index.html is included in this directive.

11
00:00:54,570 --> 00:00:59,180
That is why we created the main file with the name index.html.

12
00:00:59,550 --> 00:01:07,230
That mean if you are going to have some other name your file, then you have to add that name here so

13
00:01:07,230 --> 00:01:12,720
that the DirectoryIndex will decide which is the name of your first file.

14
00:01:13,050 --> 00:01:16,800
So in our case, we will view this.

15
00:01:17,070 --> 00:01:25,290
What is the value of that by sending the output to grep command and then we will try to search this

16
00:01:25,290 --> 00:01:27,300
string carrot.

17
00:01:27,630 --> 00:01:34,950
And this is the string that we are going to search and we will see that, display that line also

18
00:01:35,250 --> 00:01:37,400
plus after five lines also.

19
00:01:37,740 --> 00:01:46,290
So we will be looking at, and no need to give this grep search, also you can open this file with the vi editor

20
00:01:46,590 --> 00:01:49,220
and find out where is the DirectoryIndex.

21
00:01:49,350 --> 00:01:50,840
So we will be seeing the both.

22
00:01:51,240 --> 00:02:00,570
So let us go to the master system and in master system, let us try to find out what is the,

23
00:02:00,750 --> 00:02:01,890
directive of that.

24
00:02:02,340 --> 00:02:11,910
So we will open that file and we will say that A5 and we want to search the symbol is carrot.

25
00:02:12,690 --> 00:02:14,190
mean beginning of line.

26
00:02:14,730 --> 00:02:19,230
Then we are going to specify the value that we want to search.

27
00:02:20,490 --> 00:02:26,910
That is hash space DirectoryIndex.

28
00:02:30,660 --> 00:02:37,990
So what it is showing that by default, your file is, DirectoryIndex value is 

29
00:02:37,990 --> 00:02:38,610
index.html.

30
00:02:38,970 --> 00:02:44,100
That is why we created our initial file as an index.

31
00:02:44,150 --> 00:02:44,580
html.

32
00:02:45,330 --> 00:02:54,410
Let us show us when we created the file in which directly we created the file, that that /var/www/html directory.

33
00:02:54,980 --> 00:02:58,540
What was the name of the file that was index.html.

34
00:02:59,010 --> 00:03:04,560
And you can open and view that DirectoryIndex option in this way also.

35
00:03:05,280 --> 00:03:13,500
So we will open with the vi editor and we will look at where is our parameter.

36
00:03:13,650 --> 00:03:15,780
So we will scroll down.

37
00:03:17,010 --> 00:03:23,130
So we will try to find out where is our DirectoryIndex directive is.

38
00:03:25,310 --> 00:03:33,650
So this is a very large file, so this is DirectoryIndex index.html, so we will quit that

39
00:03:33,660 --> 00:03:33,970
file.

40
00:03:37,370 --> 00:03:46,010
So that mean our DirectiveIndex directive is going to decide, which page by default will

41
00:03:46,010 --> 00:03:47,690
be sent to the clients.
