правильно ли я поимю чо нуно что-то вроде ?
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
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,253994,253999#msg-253999
_______________________________________________
nginx-ru mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-ru