An alternative method if you wish to turn off the directory listing for existing accounts without an index.html default page
Edit your /usr/local/apache/conf/access.conf
and remove the word "Indexes"
After editing it will look like this:
<Directory />
Options FollowSymLinks ExecCGI Includes
AllowOverride All
order allow,deny
allow from all
</Directory>
You must restart Apache for these changes to go into effect. You can restart Apache through your WHM(root) or at the command line.
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
The result instead of the directory listing:
Forbidden
You don't have permission to access / on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
---------------------------------------------------------------------
Apache/1.3.28 Server at
www.domainname.com Port 80
Regards