What Is Document Root in Linux?
Contents the Documentroot Is the Top-Level Directory in the Document Tree Visible from the Web and This Directive Sets the Directory in the Configuration from...
The DocumentRoot is the top-level directory in the document tree visible from the web and this directive sets the directory in the configuration from which Apache2 or HTTPD looks for and serves web files from the requested URL to the document root.
What is the document root?
The web server document root is the root directory of the web server running on your system. The documents under this root are accessible to any system connected to the web server (provided the user has permissions). If a file is not under this root directory, then it cannot be accessed through the web server.
Must Read
Where is document root defined?
The folder/directory on a Web server that contains the Web pages visible to the public. Also called the “docroot,” the folder names are often /www/public or /public_html.