我在 node app- 中使用以下模块的反向代理:
https://github.com/nodejitsu/node-http-proxy
我的问题是我是否需要修改反向代理状态的 header 才能像标准一样工作?
最佳答案
根据我的基本理解,您需要使用额外的 header 才能将信息传递给源服务器。
试试:
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.
此信息基于 This
关于node.js - 应提供反向代理 header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32139273/