1
00:00:00,390 --> 00:00:06,720
Now, here we are going to discuss if our Web server is not going to find the index.html

2
00:00:06,720 --> 00:00:06,970
file.

3
00:00:06,990 --> 00:00:08,360
What will happen then

4
00:00:08,370 --> 00:00:14,060
It is going to display the default welcome page, now where is that default welcome page.

5
00:00:14,430 --> 00:00:23,940
So for that, we will go into a little bit directory structure of our httpd server mean.

6
00:00:23,940 --> 00:00:24,130
apache server.

7
00:00:24,780 --> 00:00:29,150
So when we install Apache Web server, a lot of directories are there.

8
00:00:29,400 --> 00:00:33,330
One is /var/www/html directory in which we put the data.

9
00:00:33,720 --> 00:00:38,010
Then we have got another directory.

10
00:00:38,070 --> 00:00:41,140
/etc/httpd there lot of files are there.

11
00:00:41,370 --> 00:00:47,640
So when we are going to run this tree command, it is going to show you various file like in conf.

12
00:00:47,640 --> 00:00:51,720
directory, our configuration file is there then we took the backup of that file.

13
00:00:52,140 --> 00:00:53,430
That file is also there.

14
00:00:53,700 --> 00:01:00,870
Then we have got autoindex.conf, php.conf this is for configuring php value.

15
00:01:00,880 --> 00:01:08,340
This is for https, a user directory for creating user based web directory then welcome is there.

16
00:01:08,340 --> 00:01:14,250
then certain modules are there certain soft links are there.

17
00:01:14,700 --> 00:01:18,600
So we will go there and find out what are the different files.

18
00:01:19,530 --> 00:01:24,800
Then you can again verify with pwd Command where you are in directory.

19
00:01:25,680 --> 00:01:35,130
So we are in /etc/httpd directory then there in conf.d directory we have got one file

20
00:01:35,130 --> 00:01:35,900
is there welcome.conf.

21
00:01:35,950 --> 00:01:41,340
this contains the instructions regarding the default welcome.

22
00:01:41,760 --> 00:01:46,200
So when we open that page cat /conf.d/welcome.conf.

23
00:01:47,010 --> 00:01:48,350
This is a very large file.

24
00:01:48,720 --> 00:01:51,840
So here you will find one alias is there.

25
00:01:51,870 --> 00:02:01,380
That mean if noindex file is there then from where it should display the contents so it will show

26
00:02:01,470 --> 00:02:02,270
you the path.

27
00:02:02,850 --> 00:02:07,590
So if you are going to check what is in this file, again, it is a very large file.

28
00:02:08,550 --> 00:02:16,200
So we are just sending the output of this file and we are trying to display the five lines.

29
00:02:16,830 --> 00:02:24,900
So there it is showing you the title Apache HTTP server test page powered by centos.

30
00:02:25,590 --> 00:02:28,500
And we are going to run this elinks http.

31
00:02:28,500 --> 00:02:39,690
command Same it is showing us that is this is the welcome page that we get if our Web

32
00:02:39,690 --> 00:02:44,520
server is not going to find your default index.html file.

33
00:02:44,850 --> 00:02:46,620
So what is the location of the file?

34
00:02:47,070 --> 00:02:52,590
The location of the file /usr/share/httpd/noindex/index.html.
