Web Directory Listing disable

Hi,

Can someone please help me understand why is this task failed? Anything I did wrong?

It asked to disable directory listing and I added the required parameter and restarted the httpd services still it failed. Did I missed something?

what have you done with configuration can you brief it here? so after that we can tell you exact problem.

Hi,

As mentioned in the screenshot, please find the below mentioned changes.

vi /etc/httpd/conf/httpd.conf

<Directory />
      Options -Indexes
</Directory>

ServerTokens Prod
ServerSignature Off

Restarted the httpd service.

Still the task failed. Did I missed something?

yes according to me, you have to configure under

<Directory /var/www/html >

for ServerTokens Prod and ServerSignature Off ,write a code in conf.d directory
security.conf