Hello,
I am using vanilla install of
Plesk Onyx- Version 17.5.3 Update #12, last updated on July 4, 2017 01:32 PM
Ubuntu 16.04.2 LTS 64bit
I want to password protect WordPress file wp-login.php which works fine on friends shared hosting
however when I apply adjusted settings to Plesk, it doesn't work
added to top of .htaccess file (vanilla WordPress install)
Htpasswd Generator – Create htpasswd - Htaccess Tools
.htpasswd created with values
I have tried both Apache and NGINX, on NGINX it doesn't work at all
I am using vanilla install of
Plesk Onyx- Version 17.5.3 Update #12, last updated on July 4, 2017 01:32 PM
Ubuntu 16.04.2 LTS 64bit
I want to password protect WordPress file wp-login.php which works fine on friends shared hosting
however when I apply adjusted settings to Plesk, it doesn't work
added to top of .htaccess file (vanilla WordPress install)
Code:
# Protect wp-login
<Files wp-login.php>
AuthUserFile /absolute/path/to-this-file/user-domain.com/.htpasswd
AuthName "restricted access"
AuthType Basic
require user test1
</Files>
Htpasswd Generator – Create htpasswd - Htaccess Tools
.htpasswd created with values
Code:
test1:$apr1$9uo/rj2q$t7Jf1aYZVMPokc4FPtGyJ/
I have tried both Apache and NGINX, on NGINX it doesn't work at all