it's an old thread but since it's the same thing, I'll continue it.
This is from my phpMyAdmin.conf: <Directory /usr/share/phpMyAdmin/>
and this from .htaccess: AuthUserFile /usr/share/phpMyAdmin/.htpasswd
and: DocumentRoot "/var/www/html"
why isn't this working. The phpMyAdmin is installed by an rpm so the folder is not under the documentroot. Whenever I try to go into the webserver:
, the only thing I get is the password for phpMyAdmin, not the .htaccess password I've set up.
and another thing, which is the best, using the .htaccess/.htpasswd or put all new websites under some other physical place other then DocumentRoot and then create a '/etc/httpd/conf.d/site.conf' and use that file
Code: Select all
deny from all
allow from 127.0.0.1
allow from 22.214.171.124