title: How can query string parameters be forwarded through a proxy_pass with nginx?
body: <pre><code>upstream apache {
     server 127.0.0.1:8080;
  }
  server{
     location ~* ^/service/(.*)$ {
        proxy_pass http://apache/$1;
        proxy_redirect off;
     }
   }
  </code></pre>
  
  <p>The above snippet will redirect requests where the url includes the string "service" to another server, but it does not include query parameters.</p>