While trying to configure nginx with the HTTP Auth Basic module, I'm getting the message "unknown directive 'location'" when I attempt to start nginx.
This only happens when I have this in my config file:
[code]
location / {
auth_basic "Restricted";
auth_basic_user_file conf/htpasswd;
}
[/code]
I've searched several places, and I was surprised that the "unknown directive" is not mentioned in these forums.