擅长:python、mysql、java
<p>如果我理解您的问题,您希望nginx直接处理一些资源</p>
<p>您需要一个<em>静态路由</em>,使用<strong>root</strong>,如</p>
<pre><code>location /static {
root /home/ubuntu/example/example;
}
</code></pre>
<p>并让其他位置由代理处理</p>
<p>我有一个nginx/uwsgi/flask<a href="http://pvilas.com/2019/08/Instalar-flask-como-servicios.html" rel="nofollow noreferrer">configuration tutorial</a>,但不幸的是它只有西班牙语</p>