we have two servers, A and B. Server A is accessed worldwide. He has nginx installed. That\'s what I have in conf:
location /test { proxy_pass http://local
try rewrite
location /test { rewrite ^ $scheme://$host/; proxy_pass http://localserver.com; }
some helpful links...
http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite
http://wiki.nginx.org/Pitfalls