captures in regex locations

Merlin merlin at mahalo.com
Thu Mar 5 00:34:35 MSK 2009


Igor,

This is awesome, and I look forward to playing with it.  I assume this is
presented as a patch for testing but is planned to be released at some point
later, correct?  Regardless, keep up the great work!

- Merlin

On Wed, Mar 4, 2009 at 1:01 PM, Igor Sysoev <is at rambler-co.ru> wrote:

> The patch against 0.7.39 to support
>
> 1) captures in regex location
> 2) an "alias" inside these locations
>
>   location ~* ^/files/(.+\.(?:gif|jpe?g|png))$ {
>
>       alias   /path/to/$1;
>   }
>
> 3) captures became global and may be used as variables in some directives:
>
>   location ~* ^/files/(.+\.(?:gif|jpe?g|png))$ {
>
>       error_page  404  /index.php?img=$1;
>   }
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090304/94e300b2/attachment.html>


More information about the nginx mailing list