That's what I thought, but I wasn't sure. I'm trying to get the remote IP to show up in my web server logs and wanted to make sure nginx was sending it.<br><br><div class="gmail_quote">On Thu, Feb 9, 2012 at 12:59 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<div><div class="h5"><br>
On Thu, Feb 09, 2012 at 12:49:16PM -0500, Bai Shen wrote:<br>
<br>
> I know the server order in the config file makes a difference. Does the<br>
> order of the statements inside the location tags make a difference?<br>
><br>
> Do I need to set the headers before doing a proxy_pass or does it matter?<br>
<br>
</div></div>In most cases order doesn't matter. There are some special cases<br>
though, most notably regexp locations and rewrite module<br>
directives, where order matters. In such special cases order of<br>
processing is usually explicitly documented.<br>
<br>
As for proxy_pass and proxy_set_header - order doesn't matter.<br>
<br>
Maxim Dounin<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>
</blockquote></div><br>