nginx 第三方auth认证

location /private/ {
    auth_request /auth;
    ...
}

location = /auth {
    proxy_pass ...
    proxy_pass_request_body off;
    proxy_set_header Content-Length "";
    proxy_set_header X-Original-URI $request_uri;
}
posted @ 2020-06-21 01:49  萱乐庆foreverlove  阅读(871)  评论(0)    收藏  举报