Hello,
I want to set a password for the WordPress logging page and when someone visit 
"https://mywebsite.com/wp-admin"; then Apache asks a username and password and 
then show the logging page. Something like 
https://www.tecmint.com/phpmyadmin-login-password-protection-htaccess/
If my WordPress directory is "/var/www/wp", then is below lines OK?

<Directory /var/www/wp/wp-admin/>
    AuthType Basic
    AuthName "Restricted Content"
    AuthUserFile /etc/httpd/.htpasswd
    Require valid-user
</Directory>

Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to