# Help to understand proxy\_pass and proxy\_cache

**URL:** <https://www.ruby-forum.com/t/help-to-understand-proxy-pass-and-proxy-cache/244156>\
**Category:** NGINX\
**Created:** [February 28, 2016, 7:53pm UTC](https://www.ruby-forum.com/t/help-to-understand-proxy-pass-and-proxy-cache/244156 "2016-02-28T19:53:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [February 28, 2016, 7:53pm UTC](https://www.ruby-forum.com/t/help-to-understand-proxy-pass-and-proxy-cache/244156/1 "2016-02-28T19:53:28Z")

</div>

Hi guys,  
i would like to understand if nginx can be used for my request, i try to  
explain:

i have a http mpegts server  
we are 5 client

normally someone think to connect all together to the server like:

client1-------------------\>   
client2-------------------\>   
client3-------------------\> http server  
client4-------------------\> /  
client5-------------------\> /

but i can’t do for reson of bandwitch ( 5 stream take around 20/22 mb )

so i would like to use nginx in the middle, like:

client1-------------------\>   
client2-------------------\>   
client3-------------------\> (nginx proxy with cache stream)  
\<-----------\>  
http server  
client4-------------------\> /  
client5-------------------\> /

5 client request the same source to my local nginx server

nginx get the stream from the main server ( in this case take only 4mb  
and  
sharing the cache with 5 client )

can be possible??

thx

Posted at Nginx Forum:

> **[help to understand proxy\_pass and proxy\_cache](https://forum.nginx.org/read.php?2,264915,264915#msg-264915)**
>
> Hi guys, i would like to understand if nginx can be used for my request, i try to explain: i have a http mpegts server we are 5 client normally someone think to connect all together to the server like: client1-------------------\> \\

---

<div class="post-metadata">

**Author:** ![vampeta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/a5b964/32.png) [@vampeta](https://www.ruby-forum.com/u/vampeta)\
**Post date:** [February 28, 2016, 10:14pm UTC](https://www.ruby-forum.com/t/help-to-understand-proxy-pass-and-proxy-cache/244156/2 "2016-02-28T22:14:50Z")

</div>

Hi

If your http server is on linux, why not simply use iptables to limit  
the speed per request?

Anyways, yes, you can use nginx to limit transfer speeds.

Nginx has several examples on the wiki

Cherrs,  
Payam chychi
