title: Mixing http and http2 under the same server on nginx
body: <p>I'm trying to have a single server on nginx serving both http2 routes and traditional http1 routes, my problem is that I cannot get it to play nicely.</p>
  
  <p>When I try to access my app on the subfolder, that runs on gunicorn+flask, I get a download file with some binary</p>
  
  <p>How can I serve both?</p>
  
  <pre><code>
      server {
          listen 80 http2;
  
          access_log /dev/stdout main;
          rewrite_log on;
          error_log /dev/stdout debug;
  
          location /some.Service {
              grpc_pass grpc://srvadd:10116;
          }
  
          location /password-reset {
              proxy_pass http://flask:8000;
          }
      }
  
  </code></pre>