Welcome! Log In Create A New Profile

Advanced

Re: ngx_http_complex_value VS ngx_http_script

Sergey Petrov
February 22, 2012 11:38AM
Thanks a lot for this explicit explanation!

On Wed, Feb 22, 2012 at 6:29 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:
> Hello!
>
> On Wed, Feb 22, 2012 at 02:30:46PM +0400, Sergey Petrov wrote:
>
>> Hi,
>> can somone explain the difference? What's the correct usecase for
>> ngx_http_script?
>
> The complex value is basically a simplified envelope for script
> functionality for a simple case of a single string with (optional)
> variables.
>
> In most cases (unless you are targeting your code for old nginx
> versions) a complex value will be ok for you.  Note complex values
> were introduced relatively recently, so in many cases nginx code
> still uses script directly.
>
> There are also some specific situations though, when you may need
> to use script functionality directly.  E.g. proxy module will do
> this when evaluating proxy_set_header directives, as this allows
> flush uncacheable variables only once.
>
> Maxim Dounin
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

ngx_http_complex_value VS ngx_http_script

Sergey Petrov 1406 February 22, 2012 05:32AM

Re: ngx_http_complex_value VS ngx_http_script

Maxim Dounin 496 February 22, 2012 09:30AM

Re: ngx_http_complex_value VS ngx_http_script

Sergey Petrov 991 February 22, 2012 11:38AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 162
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready