Thank you for your response, I was able to resolve, really appreciate it. My solution was along the same lines as yours.<br><br><div class="gmail_quote">On Thu, Dec 29, 2011 at 2:22 PM, Valentin V. Bartenev <span dir="ltr"><<a href="mailto:ne@vbart.ru">ne@vbart.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thursday 29 December 2011 22:51:13 Ilan Berkner wrote:<br>
> I'd like to match all of the media files in this sub directory (and<br>
> subsequent directories) but its not working.<br>
><br>
> location ~* /_games/\.(jpg|jpeg|png|gif|swf|flv|mp3)$ {<br>
> expires max;<br>
> }<br>
><br>
> My regular expression is off the mark...<br>
><br>
<br>
</div></div>Your regexp matches URIs only like these:<br>
/_games/.gif<br>
/_games/.flv<br>
etc...<br>
<br>
Probably, you want:<br>
<br>
location ~* /_games/.+\.(?:jpe?g|png|gif|swf|flv|mp3)$ {<br>
expires max;<br>
}<br>
<br>
or, maybe:<br>
<br>
location /_games/ {<br>
location ~* \.(?:jpe?g|png|gif|swf|flv|mp3)$ {<br>
expires max;<br>
}<br>
}<br>
<br>
Please, read:<br>
man pcrepattern<br>
man pcresyntax<br>
<br>
<br>
wbr, Valentin V. Bartenev<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><br clear="all"><div><br></div>-- <br><div><br></div><div>Ilan Berkner</div><div>Chief Technology Officer</div><div>Time4Learning.com</div><div><br></div><div>6300 NE 1st Ave., Suite 203</div><div>
Ft. Lauderdale, FL 33334</div><div>(954) 771-0914</div><div><br></div><div><a href="http://www.twitter.com/time4learning" target="_blank"><img src="http://www.time4learning.com/_img/buttons/addthis/twitter_32.png"></a> <a href="http://www.facebook.com/Time4Learning" target="_blank"><img src="http://www.time4learning.com/_img/buttons/addthis/facebook_32.png"></a> <br>
</div><div><br></div><div><div><a href="http://Time4Learning.com" target="_blank">Time4Learning.com</a> - Online interactive curriculum for home use, PreK-8th Grade.</div><div><a href="http://Time4Writing.com" target="_blank">Time4Writing.com</a> - Online writing tutorials for high, middle, and elementary school students.</div>
<div><a href="http://Time4Learning.net" target="_blank">Time4Learning.net</a> - A forum to chat with parents online about kids, education, parenting and more.</div><div><a href="http://spellingcity.com" target="_blank">spellingcity.com</a> - Online vocabulary and spelling activities for teachers, parents and students.</div>
</div><div><br></div><br>