<br>if it&#39;s is 1:1 module and nginx establishes  HTTP 1.0 only to apache server,  every time enginx receive a request, it has to proxy the request to apache server, what is the advantange make enginx as reverse proxy  other than make direct connection between browser and apache?<br>
<br><br>---Xuepeng<br><br><br><div class="gmail_quote">2009/8/10 Joshua Zhu <span dir="ltr">&lt;<a href="mailto:zhuzhaoyuan@gmail.com">zhuzhaoyuan@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
2009/8/10 李学鹏 &lt;<a href="http://xuepeng.li" target="_blank">xuepeng.li</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; So,  it means that client (browser) will get a 5** error ?<br>
&gt; if this,  what&#39;s the meaning of enginx high concurrent connection ?<br>
&gt;<br>
&gt; 2009/8/10 Weibin Yao &lt;<a href="mailto:nbubingo@gmail.com">nbubingo@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; 李学鹏 at 2009-8-10 10:37 wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; hi all<br>
&gt;&gt;&gt; i have a question that how nginx handle connection with backend web<br>
&gt;&gt;&gt; server ?<br>
&gt;&gt;&gt; for example, i have a nginx server for receiving client request, and<br>
&gt;&gt;&gt; reverse proxy to backend 2 web server(such as apache server), every apache<br>
&gt;&gt;&gt; server have 100 child process(prefork module). so, if there are 1000 client<br>
&gt;&gt;&gt; requests, how nginx map 1000 requests to only 200 apache server process?<br>
&gt;&gt;&gt;<br>
&gt;&gt; Nginx can handle more than 10000 concurrent connections, but apache with<br>
&gt;&gt; prefork&#39;s max concurrent connections is the number of its process number. So<br>
&gt;&gt; Apache will send the 5** error.<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Weibin Yao<br>
&gt;&gt;<br>
<br>
</div></div>It&#39;s 1:1 model actually and for now nginx establishes HTTP 1.0<br>
connections only.<br>
<br>
In your circumstance, you use nginx as a reverse proxy, hence it&#39;s not<br>
nginx but your upstream&#39;s duty to handle real connections, I.E., your<br>
upstream&#39;s capacity must be big enough, otherwise, it will become the<br>
bottleneck.<br>
<br>
Cheers!<br>
<br>
--<br>
<font color="#888888">Joshua Zhu<br>
<br>
</font></blockquote></div><br>