title: How to rewrite nginx to proxy?
body: <p>New to rewrites.  Running 2 services on my host:</p>
  
  <pre><code>  location /{
        #this works fine
        proxy_pass http://myMainServiceIp/;    
     }
  
     location /wordpress{
        #works but redirects to http://example.com/wp-admin/install.php
        #rather than http://example.com/blog/wp-admin/install.php
        proxy_pass http://wordpressServiceIp/;    
     }
  </code></pre>
  
  <p>How can I forward <code>/blog/*params*/*etc*/*etc*</code> to my wordpress service correctly?</p>