分类 Nginx 下的文章

Apache APISIX网关部署

概述Apache APISIX is a dynamic, real-time, high-performance API gateway. APISIX provides rich traffic management features such as load balancing, dynamic upstream, canary releas...

Nginx使用反向代理转发SSH服务

环境系统:Centos7服务器:腾讯云轻量香港目的通过nginx proxy ssh端口来达到安全、加速的效果。部署实现此功能需要将stream模块编译进来,依照官方文档得知:The ngx_stream_core_module module is available since version 1.9.0. This module is not bu...

Nginx脚本方式分割日志

#!/bin/sh # nginx日志路径 LOGS_PATH=/data/wwwlogs/ TODAY=$(date -d 'today' +%Y-%m-%d) # 移动日志并改名 mv ${LOGS_PATH}/error.log ${LOGS_PATH}/error_${TODAY}.log mv ${LOGS_PATH}/access....

Nginx封禁IP和IP段

前言在没有专业WAF的情况下,我们如果想要封禁一些恶意访问的IP(段),可以使用ngx_http_access_module模块来实现。官方对此模块的解释:The ngx_http_access_module module allows limiting access to certain client addresses.指令语法Syntax: ...