<br>if it'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"><<a href="mailto:zhuzhaoyuan@gmail.com">zhuzhaoyuan@gmail.com</a>></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 李学鹏 <<a href="http://xuepeng.li" target="_blank">xuepeng.li</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>>:<br>
<div><div></div><div class="h5">> So, it means that client (browser) will get a 5** error ?<br>
> if this, what's the meaning of enginx high concurrent connection ?<br>
><br>
> 2009/8/10 Weibin Yao <<a href="mailto:nbubingo@gmail.com">nbubingo@gmail.com</a>><br>
>><br>
>> 李学鹏 at 2009-8-10 10:37 wrote:<br>
>>><br>
>>> hi all<br>
>>> i have a question that how nginx handle connection with backend web<br>
>>> server ?<br>
>>> for example, i have a nginx server for receiving client request, and<br>
>>> reverse proxy to backend 2 web server(such as apache server), every apache<br>
>>> server have 100 child process(prefork module). so, if there are 1000 client<br>
>>> requests, how nginx map 1000 requests to only 200 apache server process?<br>
>>><br>
>> Nginx can handle more than 10000 concurrent connections, but apache with<br>
>> prefork's max concurrent connections is the number of its process number. So<br>
>> Apache will send the 5** error.<br>
>><br>
>> --<br>
>> Weibin Yao<br>
>><br>
<br>
</div></div>It'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's not<br>
nginx but your upstream's duty to handle real connections, I.E., your<br>
upstream'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>