谁的笔记

  • 首页
  • 前端
  • 后端
  • 数据库
  • 虚拟机

Nginx Proxy Protocol 获取真实IP地址

  • admin
  • 2023-10-23
  • 0
server {
    # ...some code
    listen 443 ssl proxy_protocol;

    # REAL-IP START
    real_ip_header proxy_protocol;
    set_real_ip_from 172.17.0.1/24;
    # REAL-IP END

    # ...some code
}
© 2025 谁的笔记
Theme by Wing
ICP备案号:浙ICP备2020030373号-1
  • {{ item.name }}
  • {{ item.name }}