127.0.0.1 localhost2
в Windows c:\Windows\system32\drivers\etc\hosts, в Linux /etc/hostslocation /office/ {
proxy_pass http://10.11.10.22/;
}
Модули контроля доступа (как то auth_basic, access и auth_request) не проверяют подзапросы.
Предполагается, что все необходимые права были проверены на этапе обработки основного запроса.
--
Maxim Dounin
nginx.org
test1
<!--# block name="empty" --><!--# endblock -->
<!--# include file="/test2.html" stub="empty" -->
map $cookie_user_id:$request_uri $allow {
default 0;
1234:/path/page1.html 1;
4567:/path/page1.html 1;
}
server {
ssi on;
location = /test1.html {
}
location = /test2.html {
internal;
if ($allow = 0) {
return 403;
}
}
}