Welcome! Log In Create A New Profile

Advanced

Bizarre? Logging: $variable_* vs $upstream_http_*

November 29, 2009 03:16AM
Consider this configuration fragment:

[code]
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;
}
[/code]


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

TEST: [] [text/html]

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

TEST: [text/html] [text/html]

Any ideas?
Subject Author Posted

Bizarre? Logging: $variable_* vs $upstream_http_*

icqheretic November 29, 2009 03:16AM

Re: Bizarre? Logging: $variable_* vs $upstream_http_*

icqheretic November 29, 2009 03:19AM

Re: Bizarre? Logging: $variable_* vs $upstream_http_*

Maxim Dounin November 29, 2009 06:08AM

Re: Bizarre? Logging: $variable_* vs $upstream_http_*

Maxim Dounin November 29, 2009 06:08AM

Re: Bizarre? Logging: $variable_* vs $upstream_http_*

icqheretic November 29, 2009 12:20PM

Re: Bizarre? Logging: $variable_* vs $upstream_http_*

icqheretic November 29, 2009 12:23PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready