location /backend {
internal;
rewrite_by_lua 'ngx.req.set_uri(ngx.var.backend_uri)';
proxy_http_version 1.1;
proxy_set_header Connection KeepAlive;
proxy_set_header CLIENTADDR $remote_addr;
proxy_set_header Content-Type application/x-www-form-urlencoded;
proxy_pass $backend_host;
}
其中$backend_host和$backend_uri是capture调用中传过来的
在 2016年12月28日星期三 UTC+8下午10:12:25,kangkang han写道: