So, this is mainly a note to myself, but…
Been having some issues password protecting a folder on the work server, and finally figured out the issue.
Had a valid .htaccess file in the folder, and an .htpassword that was accessible. Yet I kept getting 404 errors. Thanks to the popularity of wordpress (even though we don’t use it at work), I found the answer.
Apparently, apache needs to be able to find a 401 error file in order to trigger a login prompt. So, adding ErrorDocument 401 401.html
then creating a 401.html in the protected folder, with anything at all in it, suddenly made it work.
Gar…