Basic HTTP Auth
Posted: Thu Jul 17, 2003 3:39 pm
I'm trying to get a heavily database-reliant site off the ground, and since my host doesn't allow external connections to MySQL, I've had to resort to installing phpMyAdmin. The installation is fine, but I want to install an HTTP auth scheme so phpMyAdmin isn't accessible to anyone who finds the URL, for hopefully obvious reasons. I've exhausted myself reading every guide I can find about the basic method, and I thought I had a good understanding of it. Evidently I was wrong. Here is how my .htaccess and .htpasswd files look, with the details changed. For the encryption I used an online tool people swear by (the one at http://www.4webhelp.net/), so I'm pretty sure that much is ok (although I could be wrong). Hopefully someone can find the problem here.
.htaccess
.htpasswd
Thanks for helping.
.htaccess
Code: Select all
AuthUserFile /full/path/.htpasswd
AuthName phpMyAdminLogin
AuthType Basic
require valid-userCode: Select all
admin:encryptedpassword