小编out*_*dev的帖子

Nginx:是否有可能从auth_request重新获得响应

我正在为nginx使用auth模块.(http://nginx.org/en/docs/http/ngx_http_auth_request_module.html)是否有可能以某种方式存储来自/ auth的响应,因此我可以将其作为请求主体发送到另一个端点.

location /private/ {
    auth_request /auth;
    proxy_pass ... 
    proxy_set_body 'Here I want to put /auth response. How?';
}

location = /auth {
    proxy_pass ...
}
Run Code Online (Sandbox Code Playgroud)

authentication nginx

8
推荐指数
1
解决办法
2950
查看次数

标签 统计

authentication ×1

nginx ×1