1
00:00:00,810 --> 00:00:09,840
Now, let us rename the file index.html as i.html, then we will see what will happen, because now in DirectoryIndex

2
00:00:09,840 --> 00:00:16,410
it is specified that by default, it will display the index.html.

3
00:00:17,100 --> 00:00:24,720
Now we are changing the file from index.html to i.html and then we will go to our C10

4
00:00:24,720 --> 00:00:27,540
system and will try to elinks --.

5
00:00:27,720 --> 00:00:35,710
dump http://172.24.0.1 and because it is going to show a lot of large output.

6
00:00:35,730 --> 00:00:42,150
So we are just concerned with the five lines so we are specifying head -5 by default head

7
00:00:42,150 --> 00:00:43,030
shows 10 lines.

8
00:00:43,200 --> 00:00:47,100
So with, you can specify how many lines you want.

9
00:00:47,280 --> 00:00:50,740
In our case, we want just five lines.

10
00:00:51,330 --> 00:00:54,510
So here you will get some message testing.

11
00:00:54,510 --> 00:00:55,200
123.

12
00:00:55,560 --> 00:00:58,790
That means now, it is not displaying that i.html.

13
00:00:59,700 --> 00:01:03,170
It is displaying some other page.

14
00:01:03,690 --> 00:01:12,240
So please remember if the Web server will not find that index.html, it will not display the

15
00:01:12,240 --> 00:01:15,310
contents of the file that you have created i.html.

16
00:01:16,380 --> 00:01:24,110
Instead, it is going to display the contents of one file called by default /usr/share/httpd

17
00:01:24,480 --> 00:01:31,630
/noindex/index.html file that mean it is going to display this page.

18
00:01:31,950 --> 00:01:46,860
So let us go to our master system and we will go into our /var/www/html directory.

19
00:01:47,480 --> 00:01:54,750
the file here is index.html and we will rename it with.

20
00:01:55,200 --> 00:02:01,680
i.html, that mean we want to check if we are not going to create the default page, what will

21
00:02:01,680 --> 00:02:02,160
happen.

22
00:02:02,400 --> 00:02:04,560
So we are simulating that now.

23
00:02:04,560 --> 00:02:07,150
our file name is i.html.

24
00:02:07,620 --> 00:02:13,890
So now what we are going to do, we will go to any of our client in our case.

25
00:02:13,890 --> 00:02:21,600
We are going to our C10 client, what we are going to do, we will go to our elinks.

26
00:02:22,530 --> 00:02:28,440
We will run this command and we want just initial five lines.

27
00:02:29,790 --> 00:02:36,960
So it is saying testing that mean our web server is running, but it is not able to find that default

28
00:02:36,960 --> 00:02:38,400
index.html file.

29
00:02:38,880 --> 00:02:40,190
So that is the problem.

30
00:02:40,470 --> 00:02:48,660
And you could have a view in this way also, that mean if you are going to elinks, so again, it is showing

31
00:02:48,660 --> 00:02:56,560
you a lot of output it is showing and what it is saying Apache test page powered by 

32
00:02:56,560 --> 00:02:57,200
centos.

33
00:02:57,450 --> 00:03:00,180
So it is showing you a lot of information.

34
00:03:00,210 --> 00:03:09,240
That is why we use the command, which command, so that it is going to show us very few lines.

35
00:03:10,320 --> 00:03:18,240
So, that mean by default our page should be index.html if that page is not there, then it

36
00:03:18,240 --> 00:03:27,450
is going to show you some other page and from where it supplies Data, it is this that can be configured.

37
00:03:27,450 --> 00:03:30,420
Also, we will see why it is displaying this page.
