Bizarre? Logging: $variable_* vs $upstream_http_*
Maxim Dounin
mdounin at mdounin.ru
Sun Nov 29 14:05:17 MSK 2009
Hello!
On Sun, Nov 29, 2009 at 03:19:10AM -0500, icqheretic wrote:
> 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;
- set $remember $upstream_http_content_type;
> proxy_pass http://127.0.0.1:6060;
> error_page 404 403 = @error;
>
> }
>
>
> Location @error {
+ set $remember $upstream_http_content_type;
> # recall $remember here, perhaps for logging.
> }
Maxim Dounin
More information about the nginx
mailing list