<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using X-Accel-Redirect Header With Nginx to Implement Controlled Downloads (with rails and php examples)</title>
	<atom:link href="http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/</link>
	<description>Yet Another Admin&#039;s blog</description>
	<lastBuildDate>Thu, 04 Feb 2010 07:58:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: MULTIMONGREL! Awesome Action Caching with Rails</title>
		<link>http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/comment-page-1/#comment-231292</link>
		<dc:creator>MULTIMONGREL! Awesome Action Caching with Rails</dc:creator>
		<pubDate>Sat, 13 Mar 2010 23:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/#comment-231292</guid>
		<description>[...] integration with  Nginx X-Accel-Redirect (and Apache&#8217;s X-SendFile) to tell your web server to send the cached file downstream. This [...]</description>
		<content:encoded><![CDATA[<p>[...] integration with  Nginx X-Accel-Redirect (and Apache&#8217;s X-SendFile) to tell your web server to send the cached file downstream. This [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: А. Александров</title>
		<link>http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/comment-page-1/#comment-230645</link>
		<dc:creator>А. Александров</dc:creator>
		<pubDate>Sat, 13 Mar 2010 19:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/#comment-230645</guid>
		<description>Кстати, есть такая функция в php
string mime_content_type ( string filename)
не тестировал, но если работает - удобно</description>
		<content:encoded><![CDATA[<p>Кстати, есть такая функция в php<br />
string mime_content_type ( string filename)<br />
не тестировал, но если работает &#8211; удобно</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: А. Александров</title>
		<link>http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/comment-page-1/#comment-230644</link>
		<dc:creator>А. Александров</dc:creator>
		<pubDate>Sat, 13 Mar 2010 19:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/#comment-230644</guid>
		<description>Чтобы правильно отдавать тип и имя файла:
&lt;?php      
header(&quot;Content-type: video/mpeg&quot;);
header(&quot;Content-Disposition: attachment; filename=\&quot;file.mpeg\&quot;&quot;);
//или подставить свой
Чтобы не задалбывали потоками reget, dmaster etc..
в nginx.conf
http {
    limit_zone   one  $binary_remote_addr  10m;
...
		location /files {
			root /home/www/.../files;
			internal;
			limit_conn   one  1;
		}
где one-имя зоны, 1-количество подкл. с одного ip</description>
		<content:encoded><![CDATA[<p>Чтобы правильно отдавать тип и имя файла:<br />
&lt;?php<br />
header(&#8220;Content-type: video/mpeg&#8221;);<br />
header(&#8220;Content-Disposition: attachment; filename=\&#8221;file.mpeg\&#8221;");<br />
//или подставить свой<br />
Чтобы не задалбывали потоками reget, dmaster etc..<br />
в nginx.conf<br />
http {<br />
    limit_zone   one  $binary_remote_addr  10m;<br />
&#8230;<br />
		location /files {<br />
			root /home/www/&#8230;/files;<br />
			internal;<br />
			limit_conn   one  1;<br />
		}<br />
где one-имя зоны, 1-количество подкл. с одного ip</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stas</title>
		<link>http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/comment-page-1/#comment-230371</link>
		<dc:creator>Stas</dc:creator>
		<pubDate>Sat, 13 Mar 2010 11:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/#comment-230371</guid>
		<description>Спасибо за статью.

С заголовками таки что-то не то - FF и IE отрабатывают нормально, а вот Опера упорно предлагает сохранить в html ...</description>
		<content:encoded><![CDATA[<p>Спасибо за статью.</p>
<p>С заголовками таки что-то не то &#8211; FF и IE отрабатывают нормально, а вот Опера упорно предлагает сохранить в html &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: алексей</title>
		<link>http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/comment-page-1/#comment-230292</link>
		<dc:creator>алексей</dc:creator>
		<pubDate>Sat, 13 Mar 2010 09:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/#comment-230292</guid>
		<description>Про использование в lighttpd контролируемых скачек с помощью скриптов можно поподробнее?</description>
		<content:encoded><![CDATA[<p>Про использование в lighttpd контролируемых скачек с помощью скриптов можно поподробнее?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Настройка nginx и PHP/FastCGI в Windows &#124; Ars Longa, Vita Brevis</title>
		<link>http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/comment-page-1/#comment-225542</link>
		<dc:creator>Настройка nginx и PHP/FastCGI в Windows &#124; Ars Longa, Vita Brevis</dc:creator>
		<pubDate>Sat, 13 Mar 2010 06:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/#comment-225542</guid>
		<description>[...] делает X-Accel-Redirect. Подробнее описано в статьях &#8220;Использование X-Accel-Redirect с Nginx для реализации контролир</description>
		<content:encoded><![CDATA[<p>[...] делает X-Accel-Redirect. Подробнее описано в статьях &#8220;Использование X-Accel-Redirect с Nginx для реализации контролир</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; [译]利用Nginx的X-Accel-Redirect头实现下载控制（附带php和rails实例） &#187; Linux &#187; bianbian coding life</title>
		<link>http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/comment-page-1/#comment-215381</link>
		<dc:creator>&#187; [译]利用Nginx的X-Accel-Redirect头实现下载控制（附带php和rails实例） &#187; Linux &#187; bianbian coding life</dc:creator>
		<pubDate>Sat, 13 Mar 2010 13:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/#comment-215381</guid>
		<description>[...] 原文链接：Using X-Accel-Redirect Header With Nginx to Implement Controlled Downloads (with rails and php examp... [...]</description>
		<content:encoded><![CDATA[<p>[...] 原文链接：Using X-Accel-Redirect Header With Nginx to Implement Controlled Downloads (with rails and php examp&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morales</title>
		<link>http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/comment-page-1/#comment-200181</link>
		<dc:creator>Morales</dc:creator>
		<pubDate>Sat, 13 Mar 2010 15:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/#comment-200181</guid>
		<description>&gt;What about the rest of the code for the rails controller.
&gt;This confuses me because you have to render something….?
&gt;I have nginx setup and I am setting the header, but then what? &gt;render :text =&gt; “”???

render :nothing =&gt; true</description>
		<content:encoded><![CDATA[<p>&gt;What about the rest of the code for the rails controller.<br />
&gt;This confuses me because you have to render something….?<br />
&gt;I have nginx setup and I am setting the header, but then what? &gt;render :text =&gt; “”???</p>
<p>render :nothing =&gt; true</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladimir</title>
		<link>http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/comment-page-1/#comment-198340</link>
		<dc:creator>Vladimir</dc:creator>
		<pubDate>Sat, 13 Mar 2010 09:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/#comment-198340</guid>
		<description>При попытке использовать описанную схему контролируемого скачивания (nginx+apache+php) столкнулся со след. проблемой: иногда вместо предложения сохранить файл в браузер выдается ошибка :
502 Bad Gateway
nginx/0.5.33
При этом в PHP скрипт передается $path с запорченным окончанием - последние несколько символов заменены на 0x0. В error.log nginx&#039;а при этом выдается сообщение:
upstream prematurely closed connection while reading response header from
upstream ...
Как с этим бороться?</description>
		<content:encoded><![CDATA[<p>При попытке использовать описанную схему контролируемого скачивания (nginx+apache+php) столкнулся со след. проблемой: иногда вместо предложения сохранить файл в браузер выдается ошибка :<br />
502 Bad Gateway<br />
nginx/0.5.33<br />
При этом в PHP скрипт передается $path с запорченным окончанием &#8211; последние несколько символов заменены на 0&#215;0. В error.log nginx&#8217;а при этом выдается сообщение:<br />
upstream prematurely closed connection while reading response header from<br />
upstream &#8230;<br />
Как с этим бороться?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/comment-page-1/#comment-196080</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Sat, 13 Mar 2010 14:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/#comment-196080</guid>
		<description>в тему предыдущего коммента - вопрос закрыт. проблема была в размере файла - больше 4 гб. Интернет експлорер побоялся что на машине фат32 и не стал качать.</description>
		<content:encoded><![CDATA[<p>в тему предыдущего коммента &#8211; вопрос закрыт. проблема была в размере файла &#8211; больше 4 гб. Интернет експлорер побоялся что на машине фат32 и не стал качать.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
