<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>配置 - 标签 - Jetsung's BLOG</title><link>https://blog.jetsung.com/tags/%E9%85%8D%E7%BD%AE/</link><description>配置 - 标签 - Jetsung's BLOG</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><lastBuildDate>Wed, 15 Apr 2026 22:19:06 +0800</lastBuildDate><atom:link href="https://blog.jetsung.com/tags/%E9%85%8D%E7%BD%AE/" rel="self" type="application/rss+xml"/><item><title>Nginx 实战：利用正则捕获实现子域名动态端口反向代理</title><link>https://blog.jetsung.com/nginx-dynamic-proxy-by-subdomain/</link><pubDate>Wed, 15 Apr 2026 22:19:06 +0800</pubDate><author><name>Jetsung Chan</name></author><guid>https://blog.jetsung.com/nginx-dynamic-proxy-by-subdomain/</guid><description><![CDATA[<p>在开发测试环境中，我们经常需要为多个本地服务配置外网访问。手动为每个端口编写 <code>server</code> 块不仅低效，而且难以维护。本文将介绍如何利用 Nginx 的<strong>正则表达式捕获</strong>功能，实现根据子域名自动转发到对应本地端口的“万能”反代配置。</p>]]></description></item><item><title>Nginx 中 location 块内 if 指令失效问题</title><link>https://blog.jetsung.com/nginx-location-if-directive-not-working/</link><pubDate>Wed, 25 Mar 2026 01:48:30 +0800</pubDate><author><name>Jetsung Chan</name></author><guid>https://blog.jetsung.com/nginx-location-if-directive-not-working/</guid><description><![CDATA[<h2 id="问题描述" class="headerLink">
    <a href="#%e9%97%ae%e9%a2%98%e6%8f%8f%e8%bf%b0" class="header-mark"></a>问题描述</h2><p>访问 <code>https://example.com/usr/life_sqlite.db</code> 时，请求一直返回 302 重定向，最终导致 &ldquo;Maximum redirects followed&rdquo; 错误。</p>
<p>配置文件 <code>/etc/angie/rewrite/typecho.conf</code> 原内容：</p>]]></description></item></channel></rss>