<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>前端 on 正能量</title><link>https://www.znl.net/categories/%E5%89%8D%E7%AB%AF/</link><description>Recent content in 前端 on 正能量</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><copyright>© 2026 正能量</copyright><lastBuildDate>Sun, 18 Oct 2026 15:01:32 +0800</lastBuildDate><atom:link href="https://www.znl.net/categories/%E5%89%8D%E7%AB%AF/index.xml" rel="self" type="application/rss+xml"/><item><title>Nginx 反向代理HTTPS服务出现502错误的解决方案</title><link>https://www.znl.net/posts/nginx-upstream-sni/</link><pubDate>Mon, 19 Sep 2022 00:07:24 +0800</pubDate><guid>https://www.znl.net/posts/nginx-upstream-sni/</guid><description>&lt;code&gt;proxy_ssl_name&lt;/code&gt; 与握手名称选择有关，转发 HTTP 头属于另一个阶段；应先明确上游证书与访问域名的对应关系。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://www.znl.net/posts/nginx-upstream-sni/featured.png"/></item><item><title>解决Nginx反向代理https502错误的问题</title><link>https://www.znl.net/posts/nginx-https-502/</link><pubDate>Fri, 11 Mar 2022 22:58:18 +0800</pubDate><guid>https://www.znl.net/posts/nginx-https-502/</guid><description>原示例通过 &lt;code&gt;proxy_ssl_server_name&lt;/code&gt; 让上游 TLS 握手携带服务器名称；&lt;code&gt;proxy_set_header Host&lt;/code&gt; 则作用于之后的 HTTP 请求。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://www.znl.net/posts/nginx-https-502/featured.png"/></item><item><title>ThinkPHP使用nginx后无法显示验证码的问题</title><link>https://www.znl.net/posts/thinkphp-captcha/</link><pubDate>Mon, 30 May 2016 12:12:44 +0800</pubDate><guid>https://www.znl.net/posts/thinkphp-captcha/</guid><description>原文重写规则把请求交给入口脚本，适用于特定年代的路径约定；移植前确认实际入口位置、路径参数和 ThinkPHP 版本。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://www.znl.net/posts/thinkphp-captcha/featured.png"/></item><item><title>php中http到https的自动跳转</title><link>https://www.znl.net/posts/php-https-redirect/</link><pubDate>Mon, 25 Apr 2016 20:58:51 +0800</pubDate><guid>https://www.znl.net/posts/php-https-redirect/</guid><description>原文的前提是目标域名已有可用 HTTPS；跳转应保留需要的路径和查询参数，并在发送响应头之前避免输出正文。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://www.znl.net/posts/php-https-redirect/featured.png"/></item></channel></rss>