limit_zone one $binary_remote_addr 64k;<br> server {<br> listen <a href="http://127.0.0.101:812">127.0.0.101:812</a>;<br> server_name host_stream_store;<br><br> location ~ '^/store/(\d+_(\d+)_[\da-f]{32}\.flv)$' {<br>
limit_conn one 1;<br> proxy_pass <a href="http://remote-backend/$1">http://remote-backend/$1</a>;<br> proxy_store /mnt/storage/streaming/$2.flv;<br> }<br> }<br><br> server {<br>
server_name frontend;<br><br> location ~ '^/\d+_(\d+)_[\da-f]{32}\.flv$' {<br> set $args_start $args;<br> if ( -f /mnt/storage/streaming/$1.flv ){<br> rewrite ^ /stream$request_uri last;<br>
}<br> rewrite ^ /stream_store$request_uri last;<br> }<br> location @stream {<br> proxy_pass <a href="http://remote-backend">http://remote-backend</a>$request_uri;<br> proxy_set_header Host remote-backend;<br>
}<br> location ~ '^/stream_store/(\d+_\d+_[\da-f]{32}\.flv)' {<br> internal;<br> proxy_pass <a href="http://127.0.0.101:812/store/$1">http://127.0.0.101:812/store/$1</a>;<br>
proxy_intercept_errors on;<br>
error_page 503 = @stream;<br> }<br> location ~ ^/stream/\d/\d/([^/]+\.flv)$ {<br> internal;<br> set $args $args_start;<br> alias /mnt/storage/streaming/$1;<br> mp4;<br>
}<br> }<br><br><div class="gmail_quote">2011/10/24 Alexander Moskalenko <span dir="ltr"><<a href="mailto:alexander.moskalenko@gmail.com">alexander.moskalenko@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div class="im">2011/10/24 Kruglov Eugenie <span dir="ltr"><<a href="mailto:ekruglov@gmail.com" target="_blank">ekruglov@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ๅำฬษ ีำิาฯษิ าลมฬษฺมรษั, ะาษ หฯิฯาฯส ืฯ ืาลอั ามยฯิู proxy_store ฯฤฮฯอี หฬษลฮิี ืำล ฯำิมฬุฮูล ะาฯหำษาีภิำั ฮม ยลหลฮฤ - อฯวี ืูฬฯึษิุ หฯฮฦษว.<br><font color="#888888"><br></font></blockquote></div><div>๗ูหฬมฤูืมสิล, ืฯฺอฯึฮฯ ศฯิุ ะฯฤิฯฬหลิ ื ฮีึฮฯล ฮมะามืฬลฮษล.</div>
</div>
<br>_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-ru</a><br></blockquote></div><br><br clear="all"><br>-- <br>Faithfully yours, Eugenie<br>ICQ #701217<br>
GTalk <a href="mailto:ekruglov@gmail.com">ekruglov@gmail.com</a><br>