设置 HTTP 请求的 header

对于 type = http 的代理,可以设置在转发中动态添加的 header 参数。

  1. # frpc.ini
  2. [web]
  3. type = http
  4. local_port = 80
  5. custom_domains = test.yourdomain.com
  6. host_header_rewrite = dev.yourdomain.com
  7. header_X-From-Where = frp

对于参数配置中所有以 header_ 开头的参数(支持同时配置多个),都会被添加到 http 请求的 header 中,根据如上的配置,会在请求的 header 中加上 X-From-Where: frp