title: nginx proxy_pass gives extra slash
body: <p>I need to convert this:</p>
  
  <pre><code>http://mydomain.nl/wp/welcome
  </code></pre>
  
  <p>to this (to run web2py):</p>
  
  <pre><code>http://127.0.0.1:8000/welcome
  </code></pre>
  
  <p>but this proxy:</p>
  
  <pre><code>location /wp {
             proxy_bind 127.0.0.1;
             proxy_pass http://localhost:8000/;
  }
  </code></pre>
  
  <p>results to this URL (according to the error.log):</p>
  
  <pre><code>http://127.0.0.1:8000//welcome
  </code></pre>
  
  <p>I don't understand why the two consecutive slashes come from, this URL makes web2py say Bad Gateway. If I remove the final slash from the proxy_pass line, the <code>wp</code> appears in the output URL, which I understand.</p>
  
  <p>How should I change the proxy_pass command?</p>