multiple substitution rules per location supported?
delta.yeh at gmail.com
Wed Aug 20 19:57:14 MSD 2008
Apache 2.2.8 has mod_substitute which works like line edit.
Is it possible to implement the line based multiple substitution in nginx?
I think line based multiple substitution is enough for response body
2008/8/20 Igor Sysoev <is at rambler-co.ru>:
> 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
More information about the nginx