Здравствуйте.<br>довольно продолжительное время мучаюсь над решением следующей проблемы: невозможно передать значение переменной подзапросом при postaction.<br>вылезает ошибка:<br><br>rewrite or internal redirection cycle while internal redirect to &quot;/givefile&quot; while reading response header from upstream, client: 94.45.190.222, server: test, request: &quot;GET /x-accel-redirect2.php?url=<a href="http://rambler.ru">rambler.ru</a>%2Frobots.txt&amp;id=3&amp;rate=200&amp;threads=1&amp;filename=rob.txt&amp;filename_hdr=filename_hdr_cd&amp;method=method_get HTTP/1.1&quot;, upstream: &quot;<a href="http://127.0.0.1:8000/x-accel-redirect2.php?url=rambler.ru%2Frobots.txt&amp;id=3&amp;rate=200&amp;threads=1&amp;filename=rob.txt&amp;filename_hdr=filename_hdr_cd&amp;method=method_get">http://127.0.0.1:8000/x-accel-redirect2.php?url=rambler.ru%2Frobots.txt&amp;id=3&amp;rate=200&amp;threads=1&amp;filename=rob.txt&amp;filename_hdr=filename_hdr_cd&amp;method=method_get</a>&quot;, host: &quot;85.17.201.163&quot;, referrer: &quot;<a href="http://85.17.201.163/x-accel-redirect2.php">http://85.17.201.163/x-accel-redirect2.php</a>&quot;<br>
<br>ДебагЛог: <a href="http://stat.puzzleclub.ru/error1.log">http://stat.puzzleclub.ru/error1.log</a> [155 KB]<br>nginx version: nginx/0.7.57<br><br>Конфиг такой:<br><br>    location /givefile {<br>        set $proxyto $upstream_http_x_proxy_to;<br>
        set $contentdisposition $upstream_http_x_send_content_disposition;<br>        set $sendcookie $upstream_http_x_send_cookie;<br>        set $proxydomain $upstream_http_x_proxy_domain;<br>        set $sessionid $upstream_http_x_session_id;<br>
        <br>        add_header Content-Disposition $contentdisposition;<br>        <br>        proxy_set_header User-Agent &quot;Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.10) Gecko/2009042708 Fedora/3.0.10-1.fc10 Firefox/3.0.10&quot;;<br>
        proxy_set_header Cookie $sendcookie;<br>        <br>        proxy_pass http://$proxyto;<br><br>        error_page 404 403 500 501 502 503 = /error.php;<br>        <br>        post_action @postaction;<br><br>        proxy_method GET;<br>
        proxy_set_header Content-type &#39;&#39;;<br>        proxy_set_header Content-Length &#39;&#39;;<br>    }<br><br> antonne (21:31:21 13/07/2009)<br>    location @postaction<br>    {<br>        proxy_pass <a href="http://127.0.0.1:8000">http://127.0.0.1:8000</a>;<br>
        <br>        proxy_set_header X-Session-Id  $sessionid;  # &lt;&lt; ТУТ (если передавать статическое значение - ошибки нет)<br>        proxy_set_header X-Bytes-Transferred $body_bytes_sent;<br>        #proxy_set_header X-HTTP-Status $status;  # &lt;&lt;  на переменную $status ругается, говорит что не знает таких<br>
        proxy_method GET;<br>        proxy_set_header Content-type &#39;&#39;;<br>        proxy_set_header Content-Length &#39;&#39;;<br>    }<br><br>Заранее весьма благодарен.<br>С уважением, Антон<br><br>