Now, sometimes we wonder why we are putting the data in /var/www/html directory.
Now that is decided by one directive called DocumentRoot.
So when we are going to open that file, your configuration file, httpd.
config.
And if we are going to grep and search for the DocumentRoot, what it is showing by default,
/var/www/html directory that mean by default.
this parameter is configured in your configuration file that you have to put the data in /var/www/html directive
because that is decided by the DocumentRoot.
you can change that
But in our case, we are not going to change that.
That mean this parameter DocumentRoot.
it decided where we are going to put our material.
So let us go and check the information about this directive.
So in our case, we will instead of opening the file, we are going to just search which directive?
We are going to search DocumentRoot.
So, DocumenRoot so by default, it is showing you this value, that is why we always save the
in which directory, /var/www/html directory if you want that your website data should be
in some other directory, then you have to change this parameter.
by configuring httpd.conf file, but we are not going to change that
parameter, we will keep it default.
So, that mean DocumentRoot is going to decide which directory will be used for putting your data.