I am running Apache2 in my server and the following configuration:
I've installed phpMyAdmin and I linked from /usr/shared/phpmyadmin to /var/www/phpmyadmin
I have few websites in the server using sites enabled so I have:
If I write on address bar the following:
the user will go to phpmyadmin page, it is not protected.
How can I protect this directory with user and password?
I tried the following:
I create a .htaccess file with the following info inside /var/www/phpmyadmin
AuthName "Login page"
And I create a .htpasswd file in /etc/secret with the following info:
But the result is nothing, when I put on url address
the page show all without protection.
I think that I need to add another thing but I don't know what is.
Anyone can help me?
Thanks in advance!