众合信隆创客空间
    • 版块
    • 标签
    • 最新
    • 热门
    • 世界
    • header.workstation
    • 未解决
    • 已解决
    • Upgrade
    • 注册
    • 登录
    1. 主页
    2. white
    3. 最佳
    W 离线
    • 资料
    • 关注 0
    • 粉丝 0
    • 主题 4
    • 帖子 7
    • 群组 0

    帖子

    最新 最佳 有争议的
    • RE: 套 cf cdn,怎么保证 CF-Connecting-IP 不被伪造?

      nginx.conf 配置

          proxy_set_header X-Real-IP $proxy_protocol_addr; 
          proxy_set_header X-Forwarded-For $proxy_protocol_addr;
      

      站点配置

          listen 443 ssl http2 proxy_protocol; 
          server_name example.com; 
          index index.php index.html index.htm default.php default.htm default.html; 
          real_ip_recursive on; #  递归处理 PROXY 协议中的 IP 地址
          set_real_ip_from 127.0.0.1; #  这里的127.0.0.1表示可信的代理服务器 IP 地址
          set_real_ip_from 10.10.1.1/24; 
          real_ip_header proxy_protocol; #  启用 PROXY 协议支持
      
      发布在 创客空间
      W
      white
    • 1 / 1