Bandwidth limiting per virtualhost

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.

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

Posted at Nginx Forum:,236319,245060#msg-245060