我的NGINX服务器上具有以下配置。
location /login/ {
auth_request /auth;
auth_request_set $auth_status $upstream_status;
proxy_ssl_verify off;
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
proxy_ssl_ciphers HIGH:!aNULL:!MD5;
proxy_ssl_certificate cert.pem;
proxy_ssl_trusted_certificate cert.crt;
proxy_ssl_certificate_key cert.key;
proxy_pass https://www.myshop.com;
}
location /auth {
internal;
proxy_pass http://myvalidator:8080/validator$is_args$args;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
proxy_set_header X-Original-URI $request_uri;
}
检查验证方,请求已完成,但未发送URL查询,甚至未发送原始标头。 如何将原始查询或值从原始标头发送到验证服务器?