HookSafe
V2EX  ›  服务器

请问各位 Apache(httpd)怎么开启 Proxy Protocol 功能 网上都搜不到相关的介绍

  •  
  •   HookSafe · Jan 26, 2021 · 2066 views
    This topic created in 1940 days ago, the information mentioned may be changed or developed.

    现在就只找到 nginx 的 但是没验证能不能用,因为 Web 服务器定死了是 Apache 所以说没办法换。官网文档好像没搜到相关介绍,但是在网上又看到 Apache 又支持 Proxy Protocol 功能,无奈不会开启。

    请问各位同学有没有这相关的文档或者开启或使用方式

    2 replies    2021-01-26 19:28:17 +08:00
    fiveelementgid
        1
    fiveelementgid  
       Jan 26, 2021 via Android   ❤️ 2
    Proxy Protocol v2 ?
    之前没有官方支持,只有非官方支持
    https://github.com/roadrunner2/mod-proxy-protocol
    现在已经 merge 到官方代码里面了
    参考这个
    https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html
    HookSafe
        2
    HookSafe  
    OP
       Jan 26, 2021
    @fiveelementgid 万分感谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3063 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 14:04 · PVG 22:04 · LAX 07:04 · JFK 10:04
    ♥ Do have faith in what you're doing.