ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: try_files video cache


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: try_files video cache
  • From: áÌÅËÓÅÊ âÏÂÏË <alexey.bobok@xxxxxxxxx>
  • Date: Sat, 9 Feb 2013 18:23:18 +0200
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=cPu5zHPvBi5aY59AdLTp3seXgqM1hA5sg3xh04pETB0=; b=fD9jAHAic/j2hGcQmftYnyCie5irEiLJL4IHvtk0e8yeDmDlqLwXuLTuv3ix7KT3/t kexXtoDb2iHCRq3uGrhmg2aYlFyL/piqPppQcmEqktYgecJC65UR58yvVLjAO3zQbHbp aM7N81/kDaDJrHYpODp+BA2fYBSJJu8+wgyuHEKO3qGeTvygVdsuUX3GgaXSLzgHaCdY wbnR2lcINBXz3jd8E16sHS6A9nY1TJDZXboKa9S+OsPnk7WATUGKPtkKHjJ1F702UeZR xnVYHWA8DHrd+BhFB3hrM0My2TkgZ89joh20ZMkTpvXNHQALcjl29jY9Vt2JmYemf8d8 9haw==
  • In-reply-to: <826016777.20130209201737@mtu-net.ru>
  • References: <CAH05gjZNb_QbLzuqnD2B-d4z7Fi6bh58Tra-BqbRQ03V0GSqzg@mail.gmail.com> <826016777.20130209201737@mtu-net.ru>


9 ÆÅ×ÒÁÌÑ 2013 Ç., 18:17 ÐÏÌØÚÏ×ÁÔÅÌØ Andrey Repin <hell-for-yahoo@xxxxxxxx> ÎÁÐÉÓÁÌ:
òÅÛÁÔØ ËÁË-ÔÏ ÔÁË:

š š š š location @nocache {
š š š š š š š š root /1/www/a.video;
š š š š š š š š access_log /var/log/nginx/video.log video;
š š š š š š š š location .flv { flv; }
š š š š š š š š location .mp4 { mp4; }
š š š š }

š š š š location ~* \.(mp4|flv)$ {
š š š š š š š š root /cache/1/www/a.video;
š š š š š š š š try_files $url @nocache;
š š š š š š š š access_log /var/log/nginx/video.log video;
š š š š š š š š location .flv { flv; }
š š š š š š š š location .mp4 { mp4; }
š š š š }

ðÒÅÄÕÐÒÅÖÄÁÀ - ÍÏÖÅÔ ÎÅ ÚÁÒÁÂÏÔÁÔØ. îÏ ÉÄÅÑ ÜÔÁ. ðÒÏÂÕÊÔÅ.

óÐÁÓÉÂÏ.
ñ ÒÅÁÌÉÚÏ×ÁÌ ÐÏÈÏÖÉÍ ÓÐÏÓÏÂÏÍ.š
š š š š location ~* \.flv$ {
š š š š š š š š root /cache/1/www/a.video;
š š š š š š š š try_files $uri @slow-flv;
š š š š š š š š access_log /var/log/nginx/video.log video;
š š š š š š š š flv;
š š š š }

š š š š location ~* \.mp4$ {
š š š š š š š š root /cache/1/www/a.video;
š š š š š š š š try_files $uri @slow-mp4;
š š š š š š š š mp4;
š š š š š š š š access_log /var/log/nginx/video.log video;
š š š š }

š š š š location @slow-mp4 {
š š š š š š š š root /1/www/a.video;
š š š š š š š š mp4;
š š š š š š š š access_log /var/log/nginx/slow.video.log video;
š š š š }

š š š š location @slow-flv {
š š š š š š š š root /1/www/a.video;
š š š š š š š š flv;
š š š š š š š š access_log /var/log/nginx/slow.video.log video;
š š š š }




--
šThink before you print.
Best regards, Alexey Bobok.
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.