小沙坨

关注

Get client user real IP in nginx access_log

小沙坨

关注

阅读 65

2023-03-03

proxy_set_header   X-Real-IP        $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

real_ip_header X-Forwarded-For;
real_ip_recursive on;
set_real_ip_from 125.31.0.42;
set_real_ip_from 172.16.0.0/24;


相关推荐

七公子706

nginx 日志之 access_log分割

七公子706 136 0 0

倪雅各

nginx过滤access_log中HEAD、OPTIONS请求记录

倪雅各 103 0 0

半夜放水

SpringBoot项目 配置tomcat access_log日志

半夜放水 130 0 0

泠之屋

nginx的access.log文件详解

泠之屋 99 0 0

烟中雯城

User-Managed Access

烟中雯城 177 0 0

前程有光

host=,db=,user=,app=,client= FATAL: could not access file "pg_repack": No su

前程有光 30 0 0

科牛

通过Nginx,Tomcat访问日志(access log)记录请求耗时

科牛 59 0 0

罗子僧

Nginx http_access_module access阶段 限制IP地址访问权限

罗子僧 84 0 0

干自闭

4、Nginx 常见模块 access:实现IP访问控制

干自闭 38 0 0

精进的医生

nginx 访问日志 access.log 添加设置cookie记录

精进的医生 62 0 0

精彩评论(0)

0 0 举报