Issue with Web Security Task

Hi, I have made all the corrections regarding this task, as shown in the screenshots. Kindly check where I am wrong?

I got status success.

image

curl -I http://172.16.238.12:8080
it will show Apache version.
sudo systemctl start httpd
sudo systemctl status httpd
Added below 2 lines on config file :
after line 32/etc/httpd/conf/httpd.conf
sudo vi /etc/httpd/conf/httpd.conf
ServerTokens Prod
ServerSignature Off
then update
<Directory "/var/www/html/ ">
Options -Indexes
AllowOverride None
Require all granted

Then run command
sudo systemctl start httpd
sudo systemctl status httpd
Validate the apache version not exposed
curl -I http://IP_address:8080

Also crate a .htaccess file in the same directoyr as /var/ww/html/

In .htaccess file: add the below line and save

Options -Indexes

Then restart httpd and check .

Validate the apache version not exposed
curl -I http://IP_address:8080

hi @Effiok, since you already passed this task, so what is the issue ?

@sadiq1425, Thanks I had fix the issue, the task status is success.

1 Like

I partially understood the question, so I later fix it…