Open yyong-brs opened 4 years ago
i want to use ngx.req.set_header to reset request header,use $upstream_addr variables, but i try ,then not effect ,please tell me how to do this? tks
In the header filter phase, Nginx already sent the request to the upstream, so there's no effect in changing headers. You should change the headers in the access phase if you want them to be sent to the upstream.
i want to use ngx.req.set_header to reset request header,use $upstream_addr variables, but i try ,then not effect ,please tell me how to do this? tks