10 proxy reverse-proxy http-proxy node.js node-http-proxy
我在节点应用程序中使用以下模块中的revese代理
https://github.com/nodejitsu/node-http-proxy
我的问题是我是否需要修改反向代理状态的标头以像标准一样工作?
根据我的基本理解,您需要使用额外的标头才能将信息传递到源服务器。
尝试 :
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.
Run Code Online (Sandbox Code Playgroud)
此信息基于此
| 归档时间: |
|
| 查看次数: |
213 次 |
| 最近记录: |