<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Nginx on TinyChen's Blog</title><link>https://tinychen.com/tags/nginx/</link><description>Recent content in Nginx on TinyChen's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Wed, 22 Jul 2026 23:30:00 +0800</lastBuildDate><atom:link href="https://tinychen.com/tags/nginx/index.xml" rel="self" type="application/rss+xml"/><item><title>官方Nginx编译安装lua模块</title><link>https://tinychen.com/20240301-nginx-compile-lua-module/</link><pubDate>Fri, 01 Mar 2024 11:00:00 +0800</pubDate><guid>https://tinychen.com/20240301-nginx-compile-lua-module/</guid><description>&lt;p&gt;本文主要记录在 Nginx 官方源码基础上，编译并静态链入 OpenResty 生态的 &lt;code&gt;lua-nginx-module&lt;/code&gt;（及 NDK、LuaJIT）的过程，便于在已有 Nginx 编译参数体系中启用 Lua。&lt;/p&gt;</description></item><item><title>nginx篇12-限速三剑客之limit_rate</title><link>https://tinychen.com/20210712-nginx-12-triple-rate-limiting-limit-rate/</link><pubDate>Mon, 12 Jul 2021 15:00:00 +0800</pubDate><guid>https://tinychen.com/20210712-nginx-12-triple-rate-limiting-limit-rate/</guid><description>&lt;p&gt;本文主要是对nginx官方&lt;a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#limit_rate"&gt;limit_rate&lt;/a&gt;相关指令的用法解释和一些个人理解，&lt;code&gt;limit_rate&lt;/code&gt;主要用于限制用户和服务器之间传输的字节数，最常用的场景可能就是下载/上传限速，在如今用户网速普遍大幅提升的情况下，对于一些文件传输、视频流媒体传输等服务还是有着一定的应用场景的。&lt;/p&gt;</description></item><item><title>nginx篇11-限速三剑客之limit_conn</title><link>https://tinychen.com/20210708-nginx-11-triple-rate-limiting-limit-conn/</link><pubDate>Thu, 08 Jul 2021 18:00:00 +0800</pubDate><guid>https://tinychen.com/20210708-nginx-11-triple-rate-limiting-limit-conn/</guid><description>&lt;p&gt;本文主要是对nginx官方&lt;a href="https://nginx.org/en/docs/http/ngx_http_limit_conn_module.html"&gt;limit_conn&lt;/a&gt;相关模块的配置用法和一些个人理解，&lt;code&gt;limit_conn&lt;/code&gt;主要用于限制用户的连接数，在如今多线程并发请求大量普及的情况下，对于一些特殊的场景还是有着一定的用处的。&lt;/p&gt;</description></item><item><title>nginx篇10-限速三剑客之limit_req</title><link>https://tinychen.com/20210616-nginx-10-triple-rate-limiting-limit-req/</link><pubDate>Wed, 16 Jun 2021 12:00:00 +0800</pubDate><guid>https://tinychen.com/20210616-nginx-10-triple-rate-limiting-limit-req/</guid><description>&lt;p&gt;本文主要是对nginx官方&lt;code&gt;limit_req&lt;/code&gt;相关模块的限速原理的解释和一些个人理解，主要参考的文章为&lt;a href="https://www.nginx.com/blog/rate-limiting-nginx/"&gt;&lt;code&gt;Rate Limiting with NGINX and NGINX Plus&lt;/code&gt;&lt;/a&gt;和nginx的&lt;a href="https://nginx.org/en/docs/http/ngx_http_limit_req_module.html"&gt;&lt;code&gt;ngx_http_limit_req_module&lt;/code&gt;&lt;/a&gt;的详细说明。&lt;/p&gt;</description></item><item><title>nginx篇09-location中的if指令是魔鬼吧</title><link>https://tinychen.com/20210527-nginx-09-if-is-evil-in-location/</link><pubDate>Thu, 27 May 2021 12:00:00 +0800</pubDate><guid>https://tinychen.com/20210527-nginx-09-if-is-evil-in-location/</guid><description>&lt;p&gt;本文主要是对nginx官方的文章&lt;a href="https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/"&gt;&lt;code&gt;If is Evil... when used in location context&lt;/code&gt;&lt;/a&gt;的翻译和理解。&lt;/p&gt;</description></item><item><title>OpenResty篇01-入门简介和安装配置</title><link>https://tinychen.com/20210317-openresty-01-introduction-and-installation/</link><pubDate>Wed, 17 Mar 2021 15:00:00 +0800</pubDate><guid>https://tinychen.com/20210317-openresty-01-introduction-and-installation/</guid><description>&lt;p&gt;本文主要对openresty做入门简介以及初始化的安装配置介绍。&lt;/p&gt;</description></item><item><title>nginx篇08-添加客户端证书认证</title><link>https://tinychen.com/20210304-nginx-08-ssl-client-certificate/</link><pubDate>Thu, 04 Mar 2021 15:00:00 +0800</pubDate><guid>https://tinychen.com/20210304-nginx-08-ssl-client-certificate/</guid><description>&lt;p&gt;本文主要介绍如何使用给nginx服务添加客户端证书认证从而实现双向加密。&lt;/p&gt;
&lt;p&gt;对于一般的https网站来说，实际上https所使用的证书是属于单向验证，即客户端单向验证服务器的安全性，而服务器端是没有对客户端的身份进行验证的。关于https的原理，可以查看这篇文章：&lt;a href="https://tinychen.com/20200602-encryption-intro/"&gt;《SSL/TLS、对称加密和非对称加密和TLSv1.3》&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;如果自己部署了一些安全性较高的网站不希望被其他人随意访问，就可以尝试部署https的双向认证，对客户端也添加证书认证。本文将会使用openssl自签证书来完成最简单的一个https双向认证。&lt;/p&gt;</description></item><item><title>HTTP2头部压缩与499踩坑</title><link>https://tinychen.com/20201111-http2-header-compression-tuning/</link><pubDate>Wed, 11 Nov 2020 11:00:00 +0800</pubDate><guid>https://tinychen.com/20201111-http2-header-compression-tuning/</guid><description>&lt;p&gt;本文主要记录 HTTP/2 升级后出现的偶发“网络连接已断开”类前端告警，以及对应的 Nginx HPACK 相关参数调优过程。&lt;/p&gt;</description></item><item><title>nginx的TLS1.3与0-RTT转发踩坑</title><link>https://tinychen.com/20200918-h2-tls13-nginx-0rtt/</link><pubDate>Fri, 18 Sep 2020 11:00:00 +0800</pubDate><guid>https://tinychen.com/20200918-h2-tls13-nginx-0rtt/</guid><description>&lt;p&gt;本文主要记录在 Nginx 上开启 TLSv1.3 &lt;code&gt;0-RTT&lt;/code&gt;（&lt;code&gt;ssl_early_data&lt;/code&gt;）后，首页被下游返回 403 的排查过程，以及 &lt;code&gt;proxy_set_header&lt;/code&gt; 继承规则与多层代理架构下的取舍。&lt;/p&gt;</description></item><item><title>使用nginx-quic支持HTTP/3</title><link>https://tinychen.com/20200821-nginx-quic-compile-to-implement-http3/</link><pubDate>Fri, 21 Aug 2020 15:00:00 +0800</pubDate><guid>https://tinychen.com/20200821-nginx-quic-compile-to-implement-http3/</guid><description>&lt;p&gt;本文主要介绍使用nginx-quic和boringssl项目来对服务器进行升级支持HTTP/3协议。&lt;/p&gt;</description></item><item><title>nginx开启HTTP2的ssl_ciphers踩坑</title><link>https://tinychen.com/20200806-h2-tls13-nginx-ssl-ciphers/</link><pubDate>Thu, 06 Aug 2020 11:00:00 +0800</pubDate><guid>https://tinychen.com/20200806-h2-tls13-nginx-ssl-ciphers/</guid><description>&lt;p&gt;本文主要记录在 Nginx 上同时开启 HTTP/2 与 TLSv1.3 后，部分浏览器出现 &lt;code&gt;ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY&lt;/code&gt; 的排查过程，以及如何调整 &lt;code&gt;ssl_ciphers&lt;/code&gt; 优先级来兼顾兼容性与安全性。&lt;/p&gt;</description></item><item><title>HTTP2的特性解析</title><link>https://tinychen.com/20200608-http2-introduction/</link><pubDate>Mon, 08 Jun 2020 10:00:00 +0800</pubDate><guid>https://tinychen.com/20200608-http2-introduction/</guid><description>&lt;p&gt;本文主要介绍了HTTP2相对于HTTP1.1的一些改进和新特性。&lt;/p&gt;</description></item><item><title>nginx篇07-启用HTTP2和TLSv1.3</title><link>https://tinychen.com/20200519-nginx-07-enable-http2-tls13/</link><pubDate>Tue, 19 May 2020 10:00:00 +0800</pubDate><guid>https://tinychen.com/20200519-nginx-07-enable-http2-tls13/</guid><description>&lt;p&gt;本文主要介绍如何使用编译的方式升级openssl库和nginx用于支持HTTP2和TLSv1.3并且介绍了一些简单的提高nginx安全性的配置。&lt;/p&gt;</description></item><item><title>Nginx篇06-Sendfile指令及其原理</title><link>https://tinychen.com/20200323-nginx-06-sendfile/</link><pubDate>Mon, 23 Mar 2020 14:00:00 +0800</pubDate><guid>https://tinychen.com/20200323-nginx-06-sendfile/</guid><description>&lt;p&gt;nginx中http模块中的sendfile指令及其原理。&lt;/p&gt;</description></item><item><title>Nginx篇05-http长连接和keeplive</title><link>https://tinychen.com/20200320-nginx-05-upstream-keepalive/</link><pubDate>Fri, 20 Mar 2020 16:00:00 +0800</pubDate><guid>https://tinychen.com/20200320-nginx-05-upstream-keepalive/</guid><description>&lt;p&gt;nginx中http模块使用http长连接的相关配置（主要是keepalive指令）和http长连接的原理解释。&lt;/p&gt;</description></item><item><title>Nginx篇04-map模块</title><link>https://tinychen.com/20200320-nginx-04-http-map-module/</link><pubDate>Fri, 20 Mar 2020 10:00:00 +0800</pubDate><guid>https://tinychen.com/20200320-nginx-04-http-map-module/</guid><description>&lt;p&gt;nginx的map模块配置语法。&lt;/p&gt;</description></item><item><title>Nginx篇03-负载均衡简单配置和算法原理</title><link>https://tinychen.com/20200319-nginx-03-load-balancing/</link><pubDate>Thu, 19 Mar 2020 10:00:00 +0800</pubDate><guid>https://tinychen.com/20200319-nginx-03-load-balancing/</guid><description>&lt;p&gt;nginx的负载均衡配置，包括http、tcp和udp负载均衡，以及&lt;code&gt;Round robin&lt;/code&gt;、&lt;code&gt;Least connections&lt;/code&gt;、&lt;code&gt;Least time&lt;/code&gt;（Nginx Plus专属）、&lt;code&gt;Generic hash&lt;/code&gt;、&lt;code&gt;Random&lt;/code&gt;、&lt;code&gt;IP hash&lt;/code&gt;（HTTP模块专属）的原理分析。&lt;/p&gt;</description></item><item><title>Nginx篇02-upstream模块中的加权轮询负载均衡</title><link>https://tinychen.com/20200318-nginx-02-smooth-weighted-round-robin-balancing/</link><pubDate>Wed, 18 Mar 2020 17:00:00 +0800</pubDate><guid>https://tinychen.com/20200318-nginx-02-smooth-weighted-round-robin-balancing/</guid><description>&lt;p&gt;nginx的upstream模块中的加权轮询负载均衡的算法原理。&lt;/p&gt;</description></item><item><title>Nginx篇01-基本安装配置和静态页面设置</title><link>https://tinychen.com/20200317-nginx-01-base-conf-static-web/</link><pubDate>Tue, 17 Mar 2020 11:00:00 +0800</pubDate><guid>https://tinychen.com/20200317-nginx-01-base-conf-static-web/</guid><description>&lt;p&gt;nginx的编译安装、添加模块、yum安装、简单配置、默认目录作用和静态页面配置。&lt;/p&gt;</description></item><item><title>搭建LNMP环境并配置wordpress网站</title><link>https://tinychen.com/20191123-lnmp-install-wordpress/</link><pubDate>Sat, 23 Nov 2019 15:00:00 +0800</pubDate><guid>https://tinychen.com/20191123-lnmp-install-wordpress/</guid><description>&lt;p&gt;CentOS7中搭建nginx+MySQL8+PHP7的LNMP环境，并且安装wordpress来作为网站服务器。&lt;/p&gt;</description></item><item><title>个人博客web服务器换用nginx</title><link>https://tinychen.com/20190829-http-to-nginx/</link><pubDate>Thu, 29 Aug 2019 15:00:00 +0800</pubDate><guid>https://tinychen.com/20190829-http-to-nginx/</guid><description>&lt;p&gt;记录一下个人博客的web服务器从apache换成nginx的过程。&lt;/p&gt;</description></item></channel></rss>