应提供反向代理标题

我使用节点应用程序中以下模块的revese代理

https://github.com/nodejitsu/node-http-proxy

我的问题是,我是否需要修改标题反向代理的状态像标准工作?

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

根据我的基本理解,你需要使用额外的头文件来传递信息到原始服务器。

尝试:

X-Forwarded-For //The IP address of the client. X-Forwarded-Host //The original host requested by the client in the Host HTTP request header. X-Forwarded-Server //The hostname of the proxy server. 

这个信息是基于这个