Welcome! Log In Create A New Profile

Advanced

unknown directive "location"

Posted by Brisk 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
unknown directive "location"
June 29, 2010 01:08PM
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.

Online Users

Guests: 64
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready