a newbie question regarding regex in nginx conf

Igor Sysoev is at rambler-co.ru
Wed Sep 3 21:51:26 MSD 2008

On Wed, Sep 03, 2008 at 07:58:35PM +0400, Maxim Dounin wrote:

> Just quote the regex, i.e:
> rewrite  "([0-9]{2})([0-9]{2})([0-9]{2})"  
> /path/to/photos/$1/$1$2/$1$2$3.png;
> (single quotes will do the trick too).

Some addition on quotes: nginx treats single and double quotes similary,
the both quote types do not affect on variable evaluation, etc.

The different quotes are simply the way to use one characters inside

 "some 'text'"
 'some "text"'

Igor Sysoev

More information about the nginx mailing list