
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 · 185 阅读 · 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 · 312 阅读 · 0 评论 -
nginx请求处理流程
参考文章https://github.com/trimstray/nginx-admins-handbook#introductionhttps://blog.51cto.com/wenxi123/2296295?source=dranginx处理一个请求共分为11个阶段阶段一,NGX_HTTP_POST_READ_PHASE获取请求头信息#相关模块: ngx_http_reali...原创 2019-09-08 18:22:26 · 501 阅读 · 0 评论