Hi,
I want to password protect one Wordpress site, based on htpasswd files. The following directive must be used:
location / {
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/htpasswd;
}
Since I host four Wordpress sites on the same Wordops install, and Nginx configuration files share the same "common" conf files, I get an error saying that "Location /" is already configured.
Is there a simple way to include this htpasswd directive, without breaking all Nginx configuration files already set up by Wordops ?
thank you
++