title: CherryPy forwarding request to another server
body: <p>I'm having the same issue as <a href="https://stackoverflow.com/questions/10100830/apache-forwarding-request-to-another-server">this SO question</a>, but with nginx and CherryPy. I am trying to allow clients to access <code>192.168.0.4:80/otherpath</code> through GET requests made to <code>192.168.0.3:80/forward</code>, where <code>192.168.0.3</code> is a host running nginx and CherryPy. nginx should perform the redirection. Requests to all other URLs served by <code>192.168.0.3</code> should be satisfied by the local CherryPy.</p>
  
  <p>I adapted a suggested nginx config by Andrew Kloos:</p>
  
  <pre><code>server {
    listen          80;
    server_name     192.168.0.3;
    root            /;
  
    location /forward {
      proxy_pass http://192.168.0.4:80/;
      proxy_set_header  X-Real-IP  $remote_addr;
    }
  }
  </code></pre>
  
  <p>which performs the forwarding as required. What configuration is required to direct other requests to a local CherryPy server, and how would CherryPy need to be running to accomodate this? I think this may be verging on a ServerFault question.</p>