Location URI Wildcard

Justin Dorfman jdorfman at netdna.com
Tue Apr 3 22:10:07 UTC 2012


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



Justin Dorfman <http://www.twitter.com/jdorfman>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120403/33129fa3/attachment.html>

More information about the nginx mailing list