Is it possible to have two ".htpasswd" files?
by n00b_noob from LinuxQuestions.org on (#5E456)
Hello,
I used "htpasswd" to create HTTP Authentication for the phpMyAdmin via https://www.tecmint.com/phpmyadmin-l...tion-htaccess/ tutorial and it's worked.
I want to add HTTP Authentication for the WordPress admin dashboard too and I did below command:
Code:# htpasswd -c /etc/httpd/.WPhtpasswd "Panel User"In the root directory of the WordPress, a .htpasswd" file existed and added below lines at the end of it:
Code:AuthType Digest
AuthName "Password Protected"
AuthDigestDomain /wp-login.php https://www.MyWebSite.com/wp-login.php
AuthUserFile /etc/httpd/.WPhtpasswd
Require valid-user
Satisfy AllThen I restarted the Apache service and when I browse the WordPress admin dashboard, then it asks me the username and password, but it doesn't work!!!
Can it because that I used the same username for Panel User" for the phpMyAdmin and WordPress?
Thank you.


I used "htpasswd" to create HTTP Authentication for the phpMyAdmin via https://www.tecmint.com/phpmyadmin-l...tion-htaccess/ tutorial and it's worked.
I want to add HTTP Authentication for the WordPress admin dashboard too and I did below command:
Code:# htpasswd -c /etc/httpd/.WPhtpasswd "Panel User"In the root directory of the WordPress, a .htpasswd" file existed and added below lines at the end of it:
Code:AuthType Digest
AuthName "Password Protected"
AuthDigestDomain /wp-login.php https://www.MyWebSite.com/wp-login.php
AuthUserFile /etc/httpd/.WPhtpasswd
Require valid-user
Satisfy AllThen I restarted the Apache service and when I browse the WordPress admin dashboard, then it asks me the username and password, but it doesn't work!!!
Can it because that I used the same username for Panel User" for the phpMyAdmin and WordPress?
Thank you.