使用curl localhost:……向nginx發送消息
nginx中有如下配置:
upstream backend_push {
server 0.0.0.0;
balancer_by_lua_file lua/upstream_push.lua;
keepalive 100;
}
location中頭域配置:
配置
|
頭域
|
proxy_set_header Host $host;
|
Host: localhost
|
proxy_set_header Host $proxy_host;
|
Host: backend_push
|