title: My NGINX wildcard does not accept arguments in proxy_pass
body: <p>Below is the configuration for my http proxy server. It successfully redirects, except for arguments put in get requests. For example: <code>?format=json</code> appended at the end.  Can someone explain why the wildcard isn't working for arguments and perhaps what I need to add to make it work?</p>
  <pre><code>http {
  
      # Docker
      resolver 127.0.0.11 ipv6=off valid=5s;
  
      server {
          listen 8005;
          proxy_set_header Host $host;
  
          set $backend http://backend:8000;
          location ~ ^/api/backend/?(.*)$ {
              resolver 127.0.0.11 ipv6=off valid=5s;
              proxy_pass $backend/$1;
          }
  
  }
  </code></pre>