"x_forward_for": "$proxy_add_x_forwarded_for", "remote_user": "$remote_user", "bytes_sent": $bytes_sent, "request_time": $request_time, "status": $status, "vhost": "$host", "request_proto": "$server_protocol", "path": "$uri", "request_query": "$args", "request_...
"x_forward_for": "$proxy_add_x_forwarded_for", "remote_user": "$remote_user", "bytes_sent": $bytes_sent, "request_time": $request_time, "status": $status, "vhost": "$host", "request_proto": "$server_protocol", "path": "$uri", "request_query": "$args", "request_...
{"headers":{"Accept":"*/*","Host":"httpbin.org","User-Agent":"curl/7.61.1","X-Amzn-Trace-Id":"Root=1-64cf349d-5d3ca35e246ed48c0e7e2b49","X-Forwarded-Host":"127.0.0.1"}} 来自“mock.api7.ai”的响应结果: {"headers":{"accept":"*/*","accept-encoding":"gzip","cf-conne...
var_x_forwarded_proto = true, } local mt = { -- 重载 hash 元方法 -- t 是 self __index = function(t, key) -- 若 cache table 存在直接返回 local cached = t._cache[key] if cached ~= nil then return cached end if type(key) ~= "string" then error("invalid argument, expect st...
"mock.api7.ai","user-agent":"curl/7.61.1","x-application-owner":"API7.ai","x-forwarded-for":"172.18.0.1","x-forwarded-host":"127.0.0.1","x-forwarded-port":"9080","x-forwarded-proto":"https","x-real-ip":"124.126.139.14","X-Application-Owner":"API7.ai","Content-Type":"...
{"time": "$time_iso8601", "remote_addr": "$proxy_protocol_addr", "x_forward_for": "$proxy_add_x_forwarded_for", "remote_user": "$remote_user", "bytes_sent": $bytes_sent, "request_time": $request_time, "status": $status, "vhost": "$host", "request_proto": "$server_...
proxy_set_header X-Real-IP $remote_addr; proxy_pass_header Date; ### the following x-forwarded-* headers is to send to upstream server set $var_x_forwarded_for $remote_addr; set $var_x_forwarded_proto $scheme; set $var_x_forwarded_host $host; ...
Our upstream service relies on the parameter of x-forwarded-proto and uses the proxy rewrite plug-in to rewrite the parameter. The upstream service does not get the correct rewritten value When APISIX configures the route, use proxy rewrite to rewrite the x-forwarded-proto parameter to http Aft...
proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Proto $scheme; location / { proxy_passhttps://apisix.h.net; } error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; ...
{"time": "$time_iso8601", "remote_addr": "$proxy_protocol_addr", "x_forward_for": "$proxy_add_x_forwarded_for", "remote_user": "$remote_user", "bytes_sent": $bytes_sent, "request_time": $request_time, "status": $status, "vhost": "$host", "request_proto": "$server_...