Hi,
I'm doin some changes on Nginx, mostly in the configurations.
I need to add some info in the access log line(in $http scope, but outside $server), and it depends on whether the original request has query params or nit. $is_args would give me the answer but the problem is that there's a redirection from the request, and I shouldn't assume the original query params will be passed with it.
Since there's a redirection, I $is_args and $args are lost and don't have the original requests's params anymore.
Other than parsing $request_uri with regex, what else I can do to have the original $args/$is_args?
I also know that I can set $original_is_args = $is_args before the "return 302 ... " line, and use this variable outside server{} context, but I've seen warning from doing so. (besides, no one can guarantee what will happen first, right?)
Thanks in advance!