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;
}

猜你喜欢

转载自www.cnblogs.com/leleyao/p/13171204.html