Change FreePBX 2.10 authentication to Apache

I was experimenting today with changing my FreePBX auth from DATABASE to WEBSERVER using the Advanced Settings Page.

I configured Apache with the following:

<Directory /var/www/html/admin>
AuthName "Secret"
AuthType Basic
AuthUserFile /dev/null
AuthMySQLHost localhost
AuthMySQLUser freepbxuser
AuthMySQLDB asterisk
AuthMySQLUserTable ampusers
AuthMySQLNameField username
AuthMySQLPasswordField password_sha1
AuthMySQLNoPasswd off
AuthMySQLPwEncryption SHA1
Require valid-user

However, it would appear that whatever AuthMySQLPwEncryption uses for SHA1 is different than what the MySQL DB for FreePBX uses, as I never could authenticate.

My end goal would be to use an Apache Directory tag to protect the entire /admin page of my PBX instead of using the built-in authentication of FreePBX.
Any pointers on what I’m doing wrong, or maybe a link to a guide on how to do this would be appreciated!
(I did look around the forum and Google, and didn’t seem to find much info on this)
Thanks so much in advance!