Welcome! Log In Create A New Profile

Advanced

Re: auth_basic error nginx: [emerg] "auth_basic" directive is not allowed here in

October 15, 2014 08:51AM
правильно ли я поимю чо нуно что-то вроде ?

set $true1
if ($http_host ~* "^(dev|www.dev)\..*\..{2,8}$"){
auth_basic "Unauthorized";
}
set $true2
if ($http_host ~* "^(dev|www.dev)\..*\..{2,8}$"){
auth_basic_user_file /var/www/dev_htpasswd;
}

.....
location / {
...
$true1
$true1

}
Subject Author Posted

auth_basic error nginx: [emerg] "auth_basic" directive is not allowed here in

shambler81 October 15, 2014 07:55AM

Re: auth_basic error nginx: [emerg] "auth_basic" directive is not allowed here in

Maxim Dounin October 15, 2014 08:10AM

Re: auth_basic error nginx: [emerg] "auth_basic" directive is not allowed here in

shambler81 October 15, 2014 08:51AM

Re: auth_basic error nginx: [emerg] "auth_basic" directive is not allowed here in

Maxim Dounin October 15, 2014 09:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready