当前位置: 首页 > article >正文

Nginx的优化及防盗链

Nginx程序优化

模块

ngx_http_access_module模块 访问模块

ngx_http_auth_basic_module模块 用户访问控制

ngx_http_stub_status_module模块 查看http状态统计模块

ngx_http_gzip_module模块 压缩模块

ngx_http_ssl_module模块 设置http的连接模块

ngx_http_rewrite_module模块 重写模块

ngx_http_referer_module模块

ngx_http_headers_module模块

压缩

 缓存

 

连接数

修改工作进程数

 

连接超时时间

 keeplive_timeout 第一个是服务端连接保持时间,第二个是客户端,尽量第二个比第一个小,这样可以避免服务端time_wait过多的问题。

隐藏版本号

二、修改源码文件中的版本号

改完需要重新编译安装,版本号要打开

 

 

Nginx防盗链

 

 

 


http://www.kler.cn/a/14826.html

相关文章:

  • 论文笔记:A Simple Framework for Contrastive Learning of Visual Representations
  • 第5章 if语句
  • C#使用异步的几种方法对比示例
  • 11. 图的入门
  • Web Service(三)—— SOAP学习
  • Linux进程层次分析
  • 【SWAT水文模型】ArcSWAT输入准备
  • 学会SpringBoot的第一天(超详细)
  • 案例01-tlias智能学习辅助系统02-文件上传
  • 基于贝叶斯优化CNN-LSTM混合神经网络预测(Matlab代码实现)
  • 详解为什么C++ 虚拟成员函数模板不被允许
  • mybatis配置文件详解
  • 记录-有意思的气泡 Loading 效果
  • Redis入门学习笔记【二】Redis缓存
  • OSCP-Sirol(docker容器到宿主机)
  • 10 【Sass语法介绍-继承】
  • 驾考新规记分口诀,1分、3分、6分、9分、12分口诀帮你记
  • 数据库原理容易出错的点
  • 计算多列迭代次数的一种平均列近似方法
  • vue3+vite3+typescript使用wangEditor编辑器