<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.yaosong.live/index.php?action=history&amp;feed=atom&amp;title=Nginx</id>
	<title>Nginx - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.yaosong.live/index.php?action=history&amp;feed=atom&amp;title=Nginx"/>
	<link rel="alternate" type="text/html" href="https://wiki.yaosong.live/index.php?title=Nginx&amp;action=history"/>
	<updated>2026-05-18T05:36:08Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.35.0-alpha</generator>
	<entry>
		<id>https://wiki.yaosong.live/index.php?title=Nginx&amp;diff=149&amp;oldid=prev</id>
		<title>Yaosong：创建页面，内容为“==location的优先级==  在Nginx中，location的优先级顺序如下：  *精确匹配（=） *前缀字符串匹配（^~） *正则表达式匹配（~和~*） *…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.yaosong.live/index.php?title=Nginx&amp;diff=149&amp;oldid=prev"/>
		<updated>2023-06-15T05:59:25Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“==location的优先级==  在Nginx中，location的优先级顺序如下：  *精确匹配（=） *前缀字符串匹配（^~） *正则表达式匹配（~和~*） *…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==location的优先级==&lt;br /&gt;
&lt;br /&gt;
在Nginx中，location的优先级顺序如下：&lt;br /&gt;
&lt;br /&gt;
*精确匹配（=）&lt;br /&gt;
*前缀字符串匹配（^~）&lt;br /&gt;
*正则表达式匹配（~和~*）&lt;br /&gt;
*前缀字符串匹配&lt;br /&gt;
&lt;br /&gt;
首先，Nginx会检查精确匹配的location。如果找到精确匹配，则搜索终止。如果没有找到精确匹配，则Nginx会检查前缀字符串匹配的location。在这些location中，选择并记住最长匹配前缀的location。如果最长匹配前缀位置具有“^〜”修饰符，则不检查正则表达式。&lt;br /&gt;
&lt;br /&gt;
然后，按照它们在配置文件中出现的顺序检查正则表达式。正则表达式的搜索在第一个匹配处终止，并使用相应的配置。如果没有找到与正则表达式匹配，则使用先前记住的前缀位置的配置。&lt;/div&gt;</summary>
		<author><name>Yaosong</name></author>
		
	</entry>
</feed>