1
00:00:00,540 --> 00:00:05,450
Now, sometimes we wonder why we are putting the data in /var/www/html directory.

2
00:00:06,900 --> 00:00:11,350
Now that is decided by one directive called DocumentRoot.

3
00:00:11,730 --> 00:00:18,180
So when we are going to open that file, your configuration file, httpd.

4
00:00:18,540 --> 00:00:18,990
config.

5
00:00:19,560 --> 00:00:26,310
And if we are going to grep and search for the DocumentRoot, what it is showing by default, 

6
00:00:26,340 --> 00:00:30,080
/var/www/html directory that mean by default.

7
00:00:30,180 --> 00:00:39,490
this parameter is configured in your configuration file that you have to put the data in /var/www/html directive

8
00:00:39,960 --> 00:00:42,150
because that is decided by the DocumentRoot.

9
00:00:42,150 --> 00:00:43,890
you can change that

10
00:00:44,190 --> 00:00:46,470
But in our case, we are not going to change that.

11
00:00:46,800 --> 00:00:49,590
That mean this parameter DocumentRoot.

12
00:00:49,830 --> 00:00:53,650
it decided where we are going to put our material.

13
00:00:54,030 --> 00:00:59,560
So let us go and check the information about this directive.

14
00:01:00,450 --> 00:01:08,320
So in our case, we will instead of opening the file, we are going to just search which directive?

15
00:01:08,790 --> 00:01:13,680
We are going to search DocumentRoot.

16
00:01:16,470 --> 00:01:26,650
So, DocumenRoot so by default, it is showing you this value, that is why we always save the

17
00:01:26,700 --> 00:01:34,740
in which directory, /var/www/html directory if you want that your website data should be

18
00:01:34,770 --> 00:01:38,790
in some other directory, then you have to change this parameter.

19
00:01:39,150 --> 00:01:45,450
by configuring httpd.conf file, but we are not going to change that

20
00:01:45,450 --> 00:01:47,390
parameter, we will keep it default.

21
00:01:48,240 --> 00:01:56,760
So, that mean DocumentRoot is going to decide which directory will be used for putting your data.
