question around ngx_http_get_flushed_variable()

2022-04-04 Thread Chris Newton via nginx-devel
I'm a little unclear as to when ngx_http_get_flushed_variable() should be used rather than ngx_http_get_indexed_variable(). The dev guide is a little sparse, so I'm hoping someone could help. The relevant flags within the ngx_variable_value_t with their dev guide descriptions (followed by my inter

Re: question around ngx_http_get_flushed_variable()

2022-04-06 Thread Chris Newton via nginx-devel
should it always set it that flag to 0 and instead rely on the call to the ngx_http_add_variable() function to set it? (coding style?) Thank you again for your help Chris On Tue, Apr 5, 2022 at 9:02 AM Maxim Dounin wrote: > Hello! > > On Mon, Apr 04, 2022 at 12:44:38PM -0700, Chr

ngx_http_script_run() question

2022-07-18 Thread Chris Newton via nginx-devel
I'm adding a variable that wants to provide an absolute URL to proxy_pass, whose value is based in part on a database lookup - but if the search key is not found in that database, my handler function is returning an NGX_ERROR which seemed reasonable (there is no good default I can return), so just

extension to server_name directive - include top-level directory in search

2023-07-25 Thread Chris Newton via nginx-devel
The server_name directive allows for selecting which "server" block should be used to process a request; a "server" being a very convenient way to group a set of directives and location blocks into a separate and distinct configuration entity. Currently, server_name selects the server based on the