title: Nginx rewrite rule with proxy pass
body: <p>I'm trying to implement nginx rewrite rules for the following situation</p>
  
  <p>Request:</p>
  
  <pre><code>http://192.168.64.76/Shep.ElicenseWeb/Public/OutputDocuments.ashx?uinz=12009718&amp;iinbin=860610350635 
  </code></pre>
  
  <p>Should be redirected to:</p>
  
  <pre><code>http://localhost:82/Public/OutputDocuments.ashx?uinz=12009718&amp;iinbin=860610350635 
  </code></pre>
  
  <p>I tried this with no luck:</p>
  
  <pre><code>location /Shep.ElicenseWeb/ {
      rewrite ^/Shep.ElicenseWeb/ /$1 last;
      proxy_pass http://localhost:82;
  }
  </code></pre>
  
  <p>What is the correct way to perform such a rewrite for nginx ?</p>