Re: проблема с proxe_pass и заменой uri

Andrew Sitnikov sitnikov at infonet.ee
Thu Jul 16 13:05:05 MSD 2009


Hello Andrew,

неужели ни у кого нет никаких идей на сей счет ?

AS>   location /secure {
AS>         proxy_pass http://x.x.x.x:80/;
AS>         proxy_set_header Host $subdomain;

AS>         proxy_redirect  off;
AS>         proxy_buffering off;

AS>         set $cc "";

AS>         if ($query_string ~ "cc=([^&]+)") {
AS>             set $cc $1;
AS>         }

AS>         #cc_key  9670611978959046;
AS>         #cc_data $cc;
AS>     }

AS>     запросы
AS>     http://host.com/secure
AS>     http://host.com/secure?foo=bar

AS>     уходят на backend правильно

AS>     2009/07/12 13:02:23 [debug] 26244#0: *8 http proxy header:
AS>     "GET /?foo=bar HTTP/1.0
AS>     Host: *******
AS>     Connection: close


AS>     но запрос
AS>     http://host.com/secure?сс=bar

AS>     уходит вот в таком виде
AS>     2009/07/12 13:03:45 [debug] 26244#0: *12 http proxy header:
AS>     "GET //secure?cc=bar HTTP/1.0
AS>     Host: *******
AS>     Connection: close

AS>     проверял на 0.6.38 и 0.7.61




-- 
Best regards,
 Andrew                            mailto:sitnikov at infonet.ee






More information about the nginx-ru mailing list