EmperorPenguin
02-23-2005, 06:58 PM
I am trying to protect the directory 'phpMyAdmin' on my local server. I'm running OSX (10.3) with the default Apache set up.
Here is what I added to httpd.conf:
<Directory "/Users/schrojo/sites/phpMyAdmin">
AllowOverride AuthConfig
</Directory>
I created .htaccess within my phpMyAdmin folder, containing the following:
AuthName "Authorization requried to access phpMyAdmin"
AuthType Basic
AuthUserFile "/Users/schrojo/sites/phpMyAdmin/.htpasswd"
AuthGroupFile /dev/null
<Limit GET POST>
require valid-user
</Limit>
I have created the accompanying .htpasswd file using htpasswd -c ....
When I try to access the site, all I get is a Forbidden error ... there is no prompt to enter my username/password. Is there something additional that I need to do in order to get the username prompt?
Here is what I added to httpd.conf:
<Directory "/Users/schrojo/sites/phpMyAdmin">
AllowOverride AuthConfig
</Directory>
I created .htaccess within my phpMyAdmin folder, containing the following:
AuthName "Authorization requried to access phpMyAdmin"
AuthType Basic
AuthUserFile "/Users/schrojo/sites/phpMyAdmin/.htpasswd"
AuthGroupFile /dev/null
<Limit GET POST>
require valid-user
</Limit>
I have created the accompanying .htpasswd file using htpasswd -c ....
When I try to access the site, all I get is a Forbidden error ... there is no prompt to enter my username/password. Is there something additional that I need to do in order to get the username prompt?