Refer to the below steps to disable the directory listing globally in WHM:

1) Login to WHM.

2) In the search box type the Apache Configuration.

3) Click on Apache configuration.

Click image for larger version  Name:	1.png Views:	1 Size:	125.0 KB ID:	1069

4) Then click on the Global Configuration.

Click image for larger version  Name:	2.png Views:	1 Size:	161.4 KB ID:	1070

5) Untick Indexes option which is present under “Directory ‘/’ Options”.


Click image for larger version  Name:	3.png Views:	1 Size:	76.9 KB ID:	1071

6) Click on the Save icon.


Click image for larger version  Name:	4.png Views:	1 Size:	19.4 KB ID:	1072

7) After that Rebuild Apache conf.

In this way, you can disable the directory listing in WHM.