【问题标题】:Reverse proxy header should be provided应提供反向代理标头
【发布时间】:2015-11-15 08:05:00
【问题描述】:

我在 node app- 中使用以下模块的反向代理:

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

我的问题是我是否需要修改反向代理状态的标头才能像标准一样工作?

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

【问题讨论】:

    标签: node.js proxy reverse-proxy http-proxy node-http-proxy


    【解决方案1】:

    根据我的基本理解,您需要使用额外的标头才能将信息传递到源服务器。

    试试:

    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

    【讨论】:

      猜你喜欢
      • 2012-12-18
      • 1970-01-01
      • 2012-04-27
      • 2023-04-09
      • 1970-01-01
      • 1970-01-01
      • 2023-03-08
      • 2021-01-31
      • 2021-08-25
      相关资源
      最近更新 更多