location filter

Francis Daly francis at daoine.org
Fri Oct 3 20:45:47 UTC 2014

On Fri, Oct 03, 2014 at 06:02:59AM -0400, rapamiti wrote:

Hi there,

> so i must add a location like this :
> location ~logo_(\d+)_(\d+).gif$ {
> My regex is correct ? (ex: logo_5435_252.gif    logo_25_1.gif etc..)

That looks right to me -- it will match the examples you give; it will
also match some others like logo_5435_252gif or logo_25_1Xgif; and it
will not match logo_5435_252.GIF

Francis Daly        francis at daoine.org

More information about the nginx mailing list