Setting default document in Apache

In order to set the default document in Apache, we need to access the httpd.conf and look for the term DirectoryIndex this is what setting the default document for Apache.

usage:

DirectoryIndex index.php index.html index.cfm

Usually, you will find it under a directory instruction. And yes, you can set different root documents for different directories.

You also might want to disable directory browsing.