# Bandwidth limiting per virtualhost

**URL:** <https://www.ruby-forum.com/t/bandwidth-limiting-per-virtualhost/226715>\
**Category:** NGINX\
**Created:** [February 19, 2013, 5:03am UTC](https://www.ruby-forum.com/t/bandwidth-limiting-per-virtualhost/226715 "2013-02-19T05:03:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 19, 2013, 5:03am UTC](https://www.ruby-forum.com/t/bandwidth-limiting-per-virtualhost/226715/1 "2013-02-19T05:03:46Z")

</div>

Hi guys,

I am managing a high traffic website. I have some embedded images that  
get a lot of traffic, and i would like to separate the traffic for the  
embeds, and the images that are viewed from the site on 2 virtual hosts.

I would like to limit the embeds let’s say to 50 mb/s so they don’t eat  
up all the available bandwidth.

Any suggestions on how can i achieve this by any chance?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 29, 2013, 2:26am UTC](https://www.ruby-forum.com/t/bandwidth-limiting-per-virtualhost/226715/2 "2013-11-29T02:26:22Z")

</div>

I’m interested by the answer too, after lot of searching, it seems we  
can  
only limit clients bandwidth, or whatever we want request rate.  
Documentation on throttling bandwidth of a location or a virtual-host is  
lacking.

Posted at Nginx Forum:

> **[Re: Bandwidth limiting per virtualhost](https://forum.nginx.org/read.php?2,236319,245060#msg-245060)**
>
> Hi guys, I am managing a high traffic website. I have some embedded images that get a lot of traffic, and i would like to separate the traffic for the embeds, and the images that are viewed from the site on 2 virtual hosts. I would like to limit the...
