Welcome! Log In Create A New Profile

Advanced

unknown directive "location"

Posted by Brisk 
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 219
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