Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 540 Bytes

keep_host_header.md

File metadata and controls

31 lines (23 loc) · 540 Bytes

KeepHostHeader

通用用在反向代理时,转发到后端的请求仍然保持客户端传递的Host信息。

参数

配置示例

  • 简单模式

    router:
      routes:
        - id: cors-shortcut
          layers:
            - KeepHostHeader
          service: Static=examples/resources
  • 完整模式

    router:
      routes:
        - id: rewrite-path-complete
          layers:
            - kind: KeepHostHeader
          service: Static=examples/resources