multiple substitution rules per location supported?

Igor Sysoev is at rambler-co.ru
Wed Aug 20 19:05:59 MSD 2008


On Wed, Aug 20, 2008 at 03:14:44PM +0800, Delta Yeh wrote:

>   I want to use the ngx_http_sub_module to substitute  the ugly urls
> in the response.
> But according to the module reference,  only one substitution rule per
> location is supported.
>  I want to know if there is any plan to support multiple substitute
> rules in one location?

The sub filter is hack. I'm not going to extend it: it's relatively
easy to find single match in filter, but it's difficult to find multiple
matches in filter. The multiple matches require to read a whole body
before parsing.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list