Since I am not good at English,so I make a picture in the attach,hope you can get it.<br><br><div class="gmail_quote">2012/3/28 Francis Daly <span dir="ltr"><<a href="mailto:francis@daoine.org">francis@daoine.org</a>></span><br>

<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Mar 27, 2012 at 07:43:22PM +0800, maven apache wrote:<br>
<br>
Hi there,<br>
<br>
I don't understand your intended data flow.<br>
<br>
Can you describe it more explicitly?<br>
<br>
In general terms, "something" makes a http request to nginx; that<br>
"something" is "the client". nginx is configured to proxy_pass a request<br>
related to the original one to a back-end server; that back-end server is<br>
"upstream".<br>
<br>
client talks to nginx, and gets a response from nginx. The client doesn't<br>
know or care about upstream.<br>
<br>
nginx talks to upstream and gets a response from upstream. nginx doesn't<br>
know or care how upstream generates the response.<br>
<br>
If a web browser is configured to use a proxy server, then as far as nginx<br>
is concerned, that proxy server is "the client", not the web browser.<br>
<br>
>From your description, it sounds like "some javascript running in the<br>
browser" is "the client".<br>
<br>
It's not clear (to me) what is "nginx" and what is "upstream".<br>
<br>
If you can explain more, it might help others to answer your question.<br>
<span class="HOEnZb"><font color="#888888"><br>
        f<br>
--<br>
Francis Daly        <a href="mailto:francis@daoine.org">francis@daoine.org</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</font></span></blockquote></div><br>