For example. User request http://user.dist.com
, the request will firstly arrived at nginx server,
upstream a.hello.com {
server 10.243.26.104:8800;
}
server
{
listen 80;
server_name user.dist.com;
location /
{
proxy_pass http://a.hello.com;
}
}
and the server a.hello.com
is running at Node.js
, the Node sever want to get the real origin request host which should be user.dist.com
, but now, the Node server get a.hello.com
, so how to get the origin host?