Bizarre? Logging: $variable_* vs $upstream_http_*

icqheretic nginx-forum at
Sun Nov 29 11:16:26 MSK 2009

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   ;

Why am I seeing this in the log file "test.log"?

TEST: [] 

Why is set not being loaded with $upstream_http_content_type? Shouldn't I see:


Any ideas?

Posted at Nginx Forum:,26404,26404#msg-26404

More information about the nginx mailing list