The default document root directory of Apache is discussed in this article.
If you’re searching for it, type the following command to locate Apache’s default doc root:

grep -i dir_docroot /etc/cpanel/ea4/paths.conf
dir_docroot=/var/www/html

You can find these files inside the directory:

├── 400.shtml
├── 401.shtml
├── 403.shtml
├── 404.shtml
├── 413.shtml
├── 500.shtml
├── cp_errordocument.shtml
└── index.html

Don’t forget that this directory contains the default document root for the server. It contains default pages that users can see and it is a reserved director, so here it cannot be used for setting up other content. If you are looking for the proper locations for user-specific content associated with the virtual host then you get this command:

grep -i homedir /etc/wwwacct.conf
HOMEDIR /home

When you create a new user or account in the cPanel a new subdirectory is automatically created inside this directory where all of the user’s content resides. As the webroot directory is given user and you can find it here:

/home/$USER/public_html

All the web content for the account will reside from this location. This directory is also accessible from

cPanel > Files > File Manager > public_html

We sincerely hope you now have a reasonable understanding of Where is Apache’s Default Document Root Directory. If you continue to have issues with the procedure mentioned above, please contact bodHOSTteam for proactive support 24×7

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

How to Change SSH Port in Red Hat Enterprise Linux

How to Change SSH Port in Red Hat Enterprise Linux

If Security security-enhanced server or SELinux is enabled on your server, there is a default…

How to Update curl on macOS

How to Update curl on macOS (Step-by-Step Guide)

The fastest way to update curl on macOS is via Homebrew: run brew install curl,…

How to Install Clang on Ubuntu 20.04 and 22.04

This article illustrates how to install Clang on Ubuntu 20.04 and 22.04. Clang serves as…