Bizarre? Logging: $variable_* vs $upstream_http_*

icqheretic nginx-forum at nginx.us
Sun Nov 29 11:19:10 MSK 2009


If this is expected behavior how to I go about passing information when an internal redirect is involved between two different locations.

For example:

Location /u1 {
      set $remember $upstream_http_content_type;
      proxy_pass             http://127.0.0.1:6060;
      error_page 404 403 = @error;

}


Location @error {
      # recall $remember here, perhaps for logging.
}

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,26404,26405#msg-26405





More information about the nginx mailing list