nginx
雪之下丶微凉
linux集成部署 & 容器化
展开
-
nginx日志切割
利用logrotate进行切割 #创建切割配置 cat > /etc/logrotate.d/nginx <<EOF /opt/nginx/logs/*.log { daily missingok rotate 90 compress delaycompress notifempty create 644 root r...原创 2019-09-08 18:20:58 · 134 阅读 · 0 评论 -
nginx location匹配顺序
例子来源以下地址 https://github.com/trimstray/nginx-admins-handbook#introduction 假设配置如下 server { listen 80; server_name xyz.com www.xyz.com; location ~ ^/(media|static)/ { root ...原创 2019-09-08 18:21:44 · 240 阅读 · 0 评论 -
nginx请求处理流程
参考文章 https://github.com/trimstray/nginx-admins-handbook#introduction https://blog.51cto.com/wenxi123/2296295?source=dra nginx处理一个请求共分为11个阶段 阶段一,NGX_HTTP_POST_READ_PHASE 获取请求头信息 #相关模块: ngx_http_reali...原创 2019-09-08 18:22:26 · 418 阅读 · 0 评论