Location URI Wildcard

Justin Dorfman jdorfman at netdna.com
Tue Apr 3 22:26:57 UTC 2012


Perfect thanks Maxim!

Regards,

Justin Dorfman <http://www.twitter.com/jdorfman>

NetDNA <http://www.netdna.com>™
The Science of Acceleration™

Email / gtalk: jdorfman at netdna.com
P: 1.323.301.1400 x 272
Skype: netdna-justind
Twitter: @jdorfman <http://www.twitter.com/jdorfman>

www.NetDNA.com <http://www.netdna.com/> | www.MaxCDN.com<http://www.maxcdn.com/>

@NetDNA <http://twitter.com/NetDNA> | @MaxCDN <http://twitter.com/MaxCDN>



On Tue, Apr 3, 2012 at 3:20 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:

> Hello!
>
> On Tue, Apr 03, 2012 at 03:10:07PM -0700, Justin Dorfman wrote:
>
> > Hello,
> >
> > I am trying to find a way to redirect a bunch of jpg files to an html
> page.
> >
> > This way is not working:
> >
> > location = /attach/201204*.jpg {
> >             root /usr/local/nginx/html;
> >             index suspend.html;
> > }
> >
> > Here is a real world file name: 201204031012088721.jpg
>
> location ~ ^/attach/201204.*\.jpg$ {
>    alias /usr/local/nginx/html/suspend.html;
> }
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120403/2e1d752a/attachment.html>


More information about the nginx mailing list