擅长:python、mysql、java
<blockquote>
<p>It works. I have no idea why, but it does.</p>
</blockquote>
<p>供将来参考:</p>
<p>它之所以工作是因为Apache按顺序处理alias指令,并使用第一个匹配项。它总是在<code>WSGIScriptAlias</code>之前点击<code>Alias /</code>,这将匹配任何内容。</p>
<p>从<a href="http://httpd.apache.org/docs/2.2/mod/mod_alias.html" rel="nofollow noreferrer">^{<cd3>} documentation</a>:</p>
<blockquote>
<p>First, all Redirects are processed before Aliases are processed, and therefore a request that matches a <code>Redirect</code> or <code>RedirectMatch</code> will never have Aliases applied. Second, the Aliases and Redirects are processed in the order they appear in the configuration files, with the first match taking precedence.</p>
</blockquote>