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 which should be<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.