<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-09-04 12:04 GMT+02:00 Brent Clark <span dir="ltr"><<a href="mailto:brentgclarklist@gmail.com" target="_blank">brentgclarklist@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Good day Guys.<br>
<br>
I would like to ask if someone could please verify my configs :<br>
<a href="http://pastebin.com/8Xk63RYD" rel="noreferrer" target="_blank">http://pastebin.com/8Xk63RYD</a><br>
<a href="http://pastebin.com/EfNSpvMV" rel="noreferrer" target="_blank">http://pastebin.com/EfNSpvMV</a><br>
<br>
I have a Nginx server sitting in front of two Apache servers.<br>
I'm using Nginx as a reverse caching / load balancing solution.<br>
But what I'm trying achieve is to cache only for images, css and Js.<br>
<br>
All in all it appears it all works.<br>
<br>
The other question I would like to ask is, does the order of location<br>
matter?<br></blockquote><div><br></div><div>Depends. For regular expression based location is does, for prefix based locations it doesn't. See <a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#location">http://nginx.org/en/docs/http/ngx_http_core_module.html#location</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">A location can either be defined by a prefix string, or by a regular expression. Regular expressions are specified with the preceding “~*” modifier (for case-insensitive matching), or the “~” modifier (for case-sensitive matching). <b>To find location matching a given request, nginx first checks locations defined using the prefix strings (prefix locations). Among them, the location with the longest matching prefix is selected and remembered. Then regular expressions are checked, in the order of their appearance in the configuration file. The search of regular expressions terminates on the first match, and the corresponding configuration is used. If no match with a regular expression is found then the configuration of the prefix location remembered earlier is used.</b><br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
If anyone can help, it would be appreciated.<br>
<br>
Thanks<br>
Brent<br>
<br>
<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" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><a href="https://github.com/KingCrunch" target="_blank">github.com/KingCrunch </a><br></div>
</div></div>