Bizarre? Logging: $variable_* vs $upstream_http_*
Maxim Dounin
mdounin at mdounin.ru
Sun Nov 29 14:03:31 MSK 2009
Hello!
On Sun, Nov 29, 2009 at 03:16:26AM -0500, icqheretic wrote:
> Consider this configuration fragment:
>
>
> log_format test_log 'TEST: [$origin_ip] [$upstream_http_content_type]';
>
> location / {
> access_log /tmp/test.log test_log;
> set $origin_ip $upstream_http_content_type;
>
> proxy_pass http://127.0.0.1:6060;
> }
Directive "set" executes at rewrite phase, before proxy even
starts working. As a result $origin_ip will be empty.
Maxim Dounin
More information about the nginx
mailing list