<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Martin,</div><br><div><div>On Jan 11, 2012, at 7:31 PM, Martin Loy wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Would you explain the main difference between using your module and using nginx as a reverse proxy and caching static content ?</blockquote><div><br></div><div><div>In some situations, mod_aclr2 helps to avoid excessive disk I/O,</div><div>especially for big static responses.</div><div><br></div><div>When nginx is used as a local reverse proxy and proxy_buffering is</div><div>enabled, every upstream reponse which can not fit into proxy buffers</div><div>may be temporarily saved on disk:</div><div><br></div><div><a href="http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffering">http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffering</a></div><div><a href="http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_temp_path">http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_temp_path</a></div><div><br></div><div>For example, we have to process the request for 700mb video file,</div><div>without mod_aclr2:</div><div><br></div><div>1) nginx sends the request to apache</div><div>2) apache sends 700mb file back to nginx</div><div>3) nginx saves received file on disk (proxy_temp_path) and</div><div>starts sending it back to the client</div><div><br></div><div>and with mod_aclr2:</div><div><br></div><div>1) nginx sends the request to apache</div><div>2) apache sends a few bytes header with X-Accel-Redirect back to nginx</div><div>3) nginx starts sending the file directly from disk</div><div><br></div><div>You save your time and your disk at step #2.</div><div><br></div><div>Of course, you also may use proxy_cache along with mod_aclr2,</div><div>but if your disks are fast enough, probably you won't need</div><div>to do any caching at all.</div><div><br></div><div>Hope this helps.</div></div><div><br></div><br><blockquote type="cite"><div><br></div><div>Regards</div><div><br></div><div>M<br><br><div class="gmail_quote">On Wed, Jan 11, 2012 at 11:54 AM, António P. P. Almeida <span dir="ltr"><<a href="mailto:appa@perusio.net">appa@perusio.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><div class="im">On 11 Jan 2012 13h17 WET, <a href="mailto:defan@nginx.com">defan@nginx.com</a> wrote:<br>
<br>
> Hello!<br>
><br>
> Ever wondered how to set up NGINX as a local proxy for Apache 2.x<br>
> with minimum efforts?<br>
<br>
</div>Nice work Andrey. Opens up Nginx as a possibility for shared hosting<br>
(keep using .htaccess) and voids any resistance people might have trying<br>
Nginx out. It's sooo easy now :)<br>
<br>
Thanks,<br>
<font color="#888888">--- appa<br>
</font><div><div></div><div class="h5"><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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><i>Nunca hubo un amigo que hiciese un favor a un enano, ni un enemigo que le hiciese un mal, que no se viese recompensado por entero.</i><br>
</div>
_______________________________________________<br>nginx mailing list<br><a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>http://mailman.nginx.org/mailman/listinfo/nginx</blockquote></div><br></body></html>