location / { proxy_set_header Host 172.18.0.242:90;proxy_pass http://172.18.0.246;
}
proxy_set_header Host xxxxxx;
主要是改变头部就行了。
找这个找了很久。