Welcome! Log In Create A New Profile

Advanced

Re: Location URI Wildcard

Justin Dorfman
April 03, 2012 06:28PM
Perfect thanks Maxim!

Regards,

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

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

Email / gtalk: jdorfman@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.comhttp://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@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Location URI Wildcard

Justin Dorfman April 03, 2012 06:12PM

Re: Location URI Wildcard

Maxim Dounin April 03, 2012 06:22PM

Re: Location URI Wildcard

Justin Dorfman April 03, 2012 06:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 104
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready