Perfect thanks Maxim!<br clear="all"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><br></span></div>
<div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">Reg</span>ards,</div><div><br></div><a href="http://www.twitter.com/jdorfman" target="_blank">Justin Dorfman</a><br><br><a href="http://www.netdna.com" target="_blank">NetDNA</a>™<br>
The Science of Acceleration™<br><br>Email / gtalk: <a href="mailto:jdorfman@netdna.com" target="_blank">jdorfman@netdna.com</a><br></span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">P: 1.323.301.1400 x 272<br>
</span><div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><span style="background-color:rgb(255,255,255)">Skype: netdna-justind<br>Twitter: </span></span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><span style="background-color:rgb(255,255,255)"><a href="http://www.twitter.com/jdorfman" style="color:rgb(0,0,204)" target="_blank">@jdorfman</a></span><br>
<br></span></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://www.netdna.com/" target="_blank">www.NetDNA.com</a> | </span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://www.maxcdn.com/" target="_blank">www.MaxCDN.com</a></span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"> </span></div>
<div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://twitter.com/NetDNA" style="color:rgb(42,93,176)" target="_blank">@NetDNA</a> | </span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://twitter.com/MaxCDN" style="color:rgb(42,93,176)" target="_blank">@MaxCDN</a></span></div>
</div><br>
<br><br><div class="gmail_quote">On Tue, Apr 3, 2012 at 3:20 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 class="im"><br>
On Tue, Apr 03, 2012 at 03:10:07PM -0700, Justin Dorfman wrote:<br>
<br>
> Hello,<br>
><br>
> I am trying to find a way to redirect a bunch of jpg files to an html page.<br>
><br>
> This way is not working:<br>
><br>
> location = /attach/201204*.jpg {<br>
> root /usr/local/nginx/html;<br>
> index suspend.html;<br>
> }<br>
><br>
> Here is a real world file name: 201204031012088721.jpg<br>
<br>
</div>location ~ ^/attach/201204.*\.jpg$ {<br>
alias /usr/local/nginx/html/suspend.html;<br>
}<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>