ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

$upstream_http_*


  • To: nginx-ru@xxxxxxxxx
  • Subject: $upstream_http_*
  • From: Domrachev Ivan <domrachev.ivan@xxxxxxxxx>
  • Date: Mon, 15 Feb 2010 03:51:36 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:x-mailer:x-priority :message-id:to:subject:mime-version:content-type :content-transfer-encoding; bh=g2S9Jx4HZ8wi8RsXxbtnX5lhf4nIcMkVFvJ4SLBoQrk=; b=w0MoAzJDJlWn5ti5Kl9lGDNC6c66zrEpkdfnuL5I9dURQC4MXLSz5yAVtjMkeFCBI3 8FSuwS5oc7m9sKiXRFj5u8rY9oJNbmE2hiL8m7DB7gKj641N9j7rYkSMRoufRjhExu0x S8ZdE/ddqVaVX/57MsD8FLuZ19Vz78U9K98Po=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:x-mailer:x-priority:message-id:to:subject:mime-version :content-type:content-transfer-encoding; b=JwvP7GXQzB3Q2cW1tywGGz7/26zwa/U7tCfs/39nKOL9oNrPljaZDVfYV4v4WknH0o mp2O5YHFtPVhSLtBCniHmUlikCJiVTFgNDdbWgTb3gdidSMhs+YvDAiGtnjIRKDmMltI 9FBgRN2T1yKqsGuyN5okjrKGXrg/wiFgSSopA=

Здравствуйте, nginx-ru.

не передаётся $upstream_http_*.
воспроизводится на nginx-0.7.65 и nginx-0.8.33.

делаю так:
запрос от пользователя сначала кидается на бэкенд:
location / {
 proxy_pass http://127.0.0.1:10000;
}
бэкенд отвечает:
200 OK
login: 451231
X-Accel-Redirect: /after_test//

после чего запрос попадает в
location /after_test/ {
 internal;
 fastcgi_pass unix:tester/tester.socket;
 fastcgi_param LOGIN $upstream_http_login;
 fastcgi_param status $upstream_status;
 fastcgi_param addr $upstream_addr;
 ...
}
но поле $upstream_http_login оказывается пустым.
куски дебаг лога:
2010/02/15 03:38:26 [debug] 9245#0: *1 http proxy status 200 "200 OK"
2010/02/15 03:38:26 [debug] 9245#0: *1 http proxy header: "login: 451231"
2010/02/15 03:38:26 [debug] 9245#0: *1 http proxy header: "Server: server"
2010/02/15 03:38:26 [debug] 9245#0: *1 http proxy header: "X-Accel-Redirect: 
/after_test//"
2010/02/15 03:38:26 [debug] 9245#0: *1 http proxy header done
...
2010/02/15 03:38:26 [debug] 9245#0: *1 post access phase: 8
2010/02/15 03:38:26 [debug] 9245#0: *1 http init upstream, client timer: 0
2010/02/15 03:38:26 [debug] 9245#0: *1 http script copy: "status"
2010/02/15 03:38:26 [debug] 9245#0: *1 http script var: "200"
2010/02/15 03:38:26 [debug] 9245#0: *1 fastcgi param: "status: 200"
2010/02/15 03:38:26 [debug] 9245#0: *1 http script copy: "LOGIN"
2010/02/15 03:38:26 [debug] 9245#0: *1 fastcgi param: "LOGIN: "
2010/02/15 03:38:26 [debug] 9245#0: *1 http script copy: "addr"
2010/02/15 03:38:26 [debug] 9245#0: *1 http script var: "127.0.0.1:10000"
2010/02/15 03:38:26 [debug] 9245#0: *1 fastcgi param: "addr: 127.0.0.1:10000"

как видно status и addr передаётся, а вот login (и любое другое слово)
не передаётся.

-- 
С уважением,
 Domrachev                          mailto:Domrachev.Ivan@xxxxxxxxx


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.