This is the directory from which Apache will read the contents that the visitor will access over browser.
To make the necessary changes you need to modify the DocumentRoot directive of the web server. However the paths and directives are practically the same for other distributions as well, so you will be able to apply the learned in different OSes as well. For the purpose of this tutorial, we will use Ubuntu/Debian and RHEL/CentOS/Fedora based installations of the web server. In this short tutorial, you are going to learn how to modify the root directory for Apache web server. Having at least basic knowledge of this web server is vital for any young professional who wants to start a career as a Linux system administrator. It is often the preferred choice by professionals for building different web projects. The web server is used to deliver web content and can serve many queries at once. Apache web server is probably the most used web server across platforms including different Linux distributions and Windows.