<br><div class="gmail_quote">9 февраля 2013 г., 18:17 пользователь Andrey Repin <span dir="ltr"><<a href="mailto:hell-for-yahoo@umail.ru" target="_blank">hell-for-yahoo@umail.ru</a>></span> написал:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":2j8">Решать как-то так:<br>
<br>
location @nocache {<br>
<div class="im"> root /1/www/a.video;<br>
access_log /var/log/nginx/video.log video;<br>
</div> location .flv { flv; }<br>
location .mp4 { mp4; }<br>
}<br>
<br>
location ~* \.(mp4|flv)$ {<br>
root /cache/1/www/a.video;<br>
try_files $url @nocache;<br>
access_log /var/log/nginx/video.log video;<br>
location .flv { flv; }<br>
location .mp4 { mp4; }<br>
}<br>
<br>
Предупреждаю - может не заработать. Но идея эта. Пробуйте.</div></blockquote></div><div><br></div>Спасибо.<div>Я реализовал похожим способом. </div><div><div><font face="courier new, monospace"> location ~* \.flv$ {</font></div>
<div><font face="courier new, monospace"> root /cache/1/www/a.video;</font></div><div><font face="courier new, monospace"> try_files $uri @slow-flv;</font></div><div><font face="courier new, monospace"> access_log /var/log/nginx/video.log video;</font></div>
<div><font face="courier new, monospace"> flv;</font></div><div><font face="courier new, monospace"> }</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace"> location ~* \.mp4$ {</font></div>
<div><font face="courier new, monospace"> root /cache/1/www/a.video;</font></div><div><font face="courier new, monospace"> try_files $uri @slow-mp4;</font></div><div><font face="courier new, monospace"> mp4;</font></div>
<div><font face="courier new, monospace"> access_log /var/log/nginx/video.log video;</font></div><div><font face="courier new, monospace"> }</font></div><div><font face="courier new, monospace"><br>
</font></div>
<div><font face="courier new, monospace"> location @slow-mp4 {</font></div><div><font face="courier new, monospace"> root /1/www/a.video;</font></div><div><font face="courier new, monospace"> mp4;</font></div>
<div><font face="courier new, monospace"> access_log /var/log/nginx/slow.video.log video;</font></div><div><font face="courier new, monospace"> }</font></div><div><font face="courier new, monospace"><br>
</font></div><div><font face="courier new, monospace"> location @slow-flv {</font></div><div><font face="courier new, monospace"> root /1/www/a.video;</font></div><div><font face="courier new, monospace"> flv;</font></div>
<div><font face="courier new, monospace"> access_log /var/log/nginx/slow.video.log video;</font></div><div><font face="courier new, monospace"> }</font></div></div><div><font face="courier new, monospace"><br>
</font></div><div><br><br clear="all"><div><br></div>-- <br><img src="http://lh6.ggpht.com/_uqI0hR4rI1E/TG968kR4jaI/AAAAAAAAAA0/uNYjd0YrmS0/image003.gif"> Think before you print.<br>Best regards, Alexey Bobok.
</div>