Hey,
If your running your WP site using EE, then you don't need to specify/setup Auth Basic.
All you need to do is create a location block and add include common/acl.conf;
.
For example:
https://easyengine.io/docs/commands/site/edit/
ee site edit example.com
then add your location block:
location = /wp-login.php {
include common/acl.conf; # EE file that holds default HTTP Auth
}
It will then be password protected. Use your AUth details EE provided when you installed it via the command line.
You can change this if needed by:
ee secure --auth [Optional user name] [Optional password]
Also I add my home static IP to the whitelist so I can bypass the basic auth when at home by:
ee secure --ip [Optional comma separated IPs]
Also for additional security look at setting up Fail2Ban.