.htaccess password annoyance…

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…

Tweet this
This entry was posted in Sys Admin, Work. Bookmark the permalink. Both comments and trackbacks are currently closed.
  • Weather

  • Current Power Usage

  • Prius Mileage

    Lifetime Average (Calc) : 44.6MPG
    Lifetime Average (MFD) : 45.43MPG
    Total Miles Driven : 70691.9
    Graphs: Price/Gal. || Mileage || Summary
  • Distance Walked

    Distance walked in last 7 days
    12.1 miles (26401 steps)
    Graphs: History || Summary