Здравствуйте.<br>довольно продолжительное время мучаюсь над решением следующей проблемы: невозможно передать значение переменной подзапросом при postaction.<br>вылезает ошибка:<br><br>rewrite or internal redirection cycle while internal redirect to "/givefile" while reading response header from upstream, client: 94.45.190.222, server: test, request: "GET /x-accel-redirect2.php?url=<a href="http://rambler.ru">rambler.ru</a>%2Frobots.txt&id=3&rate=200&threads=1&filename=rob.txt&filename_hdr=filename_hdr_cd&method=method_get HTTP/1.1", upstream: "<a href="http://127.0.0.1:8000/x-accel-redirect2.php?url=rambler.ru%2Frobots.txt&id=3&rate=200&threads=1&filename=rob.txt&filename_hdr=filename_hdr_cd&method=method_get">http://127.0.0.1:8000/x-accel-redirect2.php?url=rambler.ru%2Frobots.txt&id=3&rate=200&threads=1&filename=rob.txt&filename_hdr=filename_hdr_cd&method=method_get</a>", host: "85.17.201.163", referrer: "<a href="http://85.17.201.163/x-accel-redirect2.php">http://85.17.201.163/x-accel-redirect2.php</a>"<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 "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";<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 '';<br> proxy_set_header Content-Length '';<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; # << ТУТ (если передавать статическое значение - ошибки нет)<br> proxy_set_header X-Bytes-Transferred $body_bytes_sent;<br> #proxy_set_header X-HTTP-Status $status; # << на переменную $status ругается, говорит что не знает таких<br>
proxy_method GET;<br> proxy_set_header Content-type '';<br> proxy_set_header Content-Length '';<br> }<br><br>Заранее весьма благодарен.<br>С уважением, Антон<br><br>