MD
Size: a a a
AK
AK
Vs
JM
map $request_uri $allowed_locations {
default 0;
~*^/packages.json$ 1;
~*^/include/(.*)$ 1;
include /etc/nginx/allowed_modules.map;
}
map "$allowed_locations:$remote_user" $is_allowed {
default 1;
"0:reader" 0;
}
location / {
if ($is_allowed != '1') {
return 403;
}
try_files $uri $uri/ /index.php?$query_string;
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/htpasswd-reader;
}
JM
Error output from post-hook command nginx:как бы победить пост-хук?
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Vs
ВМ
JM
ВМ
ВМ
AN
Vs
ВМ