nginx客户端真实IP配置
2024-10-20 21:09:13
https://www.cnblogs.com/kevingrace/p/8269955.html
include mime.types;
default_type application/octet-stream;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
access_log logs/access.log ;
#max_ranges 1
sendfile on;
client_max_body_size 1024M;
tcp_nopush on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
#keepalive_timeout 0;
keepalive_timeout 3600;
include ./config/*.conf;
server_tokens off;
最新文章
- [WPF系列]-基础系列 TabControl应用
- typename
- php中global与$GLOBALS的用法及区别-转载
- Python中通过cx_oracle操作ORACLE数据库的封闭函数
- C#字符串题目
- ArcObjects SDK(AE)10.1在vs2012安装的方法
- QT 5.1.1 for Android 开发环境搭建与配置【Windows 7】
- 用newLISP读取Hive的元数据
- 【poj解题】3664
- IE去掉input的type=”text”输入内容时出现的X和type=”password”出现的眼睛图标
- 开涛spring3(6.2) - AOP 之 6.2 AOP的HelloWorld
- 自动安装lnmp
- theOS环境搭建
- Redis单机版安装
- Vue-cropper 图片裁剪的基本原理
- 使用httpclient访问NLP应用接口例子
- MFC控件编程之复选框单选框分组框
- ROS学习(十)—— 使用rosed编辑ROS中的文件
- LR问题集合
- 前端(八):react入门
热门文章
- 【公式详解】【优秀论文解读】EDPLVO: Efficient Direct Point-Line Visual Odometry
- 阿里云kafka使用记录(python版本)
- Mybatis的学习与理解
- java入门与进阶-P1.3+P1.4
- 单线程架构的Redis如此之快的 4 个原因
- 基于APIView&;ModelSerializer写接口
- Vue19 常用指令及自定义指令
- docker02-centos上安装
- 银河麒麟服务器操作系统安装VMware Tool
- 【CodeSmith】The System.Data.SQLite library is not installed on this computer,不能使用SQLite解决办法