Protected http root directory task completed and able to see the result as expected but showing failed

Please refer the screen shots i have done all the steps as mentioned and also getting expected result

By starting httpd service i am seeing this protected directory messahe as expected

From screenshots you shared above there are two possible issues,

  • Seems like you changed the default document root of Apache from /var/www/html to /var/www/html/<your-protected-dir> hence the URL you used for curl is 172.16.238.10:8080 which should be 172.16.238.10:8080/<your-protected-dir> as its mentioned in the question not to change the default document root.
  • Also you are able to browse the URL without username/password ? You should have get access denied error so possible your setup is not correct.