每个Apache虚拟主机限制带宽 [英] Limit Bandwidth per Apache Virtual Host

查看:347
本文介绍了每个Apache虚拟主机限制带宽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要推出一款2GB的Linode VPS主办基于Yii框架夫妇字preSS CMS网站和一个。我计划使用Apache virtualhosts来分配每个它自己的根目录网站上用户的主目录,而不是把一切都在/ var / WWW

I'm going to launch a 2GB Linode VPS to host a couple of Wordpress CMS sites and one based on Yii framework. I planned on using Apache virtualhosts to assign each site it's own webroot on a user's home directory instead of leaving everything in /var/www

是否有可能限制分配给每一个Apache的虚拟主机的bandiwdth?我打算使用Debian挤压或CentOS的这个框。这并不是说我设想任何网站杏距离的Linode分配带宽4TB的,但它只是似乎是很好的做法。

Is it possible to limit the bandiwdth allocated to each Apache virtualhost? I was planning on using Debian Squeeze or CentOS for this box. Not that I envision any of the sites maxing out the 4TB of bandwidth allocated from Linode but it just seems like good practice.

我觉得用VPS是最好的选择,因为没有一个网站都特别大,使用PaaS的成本似乎有点多了几个简单的CMS网站和一个轻量级的Yii应用。

I think using a VPS is the best option as none of the sites are particularly large and the cost of using a PaaS seems a bit much for a few simple CMS sites and a lightweight Yii app.

此外 - 我知道这是主观的,有些对这里的规则 - 但Debian的特别容易比较的CentOS的新手使用?的Linode有关于启动和运行CentOS的服务器上的维基广泛的指南,但我敢肯定,在野外为Debian也有同样的好导游在那里?

Also - I know this is subjective and somewhat against the rules here - but is Debian particularly easy to use compared to CentOS for a newbie? Linode have an extensive guide on their Wiki about launching and running a CentOS server but I'm sure there are equally as good guides out there in the wild for Debian?

先谢谢您的任何意见:)

Thanks in advance for any advice :)

推荐答案

有几个模块为Apache限制每个网站的总带宽。一个众所周知的是mod_bw。下面是关于如何设置它的一些好的教程:

There are several modules for Apache to limit the total bandwidth for each website. A well known one is mod_bw. Here are some good tutorials on how to set it up:

  • http://www.gavinwill.me.uk/2012/09/limit-apache-bandwidth-with-mod_bw/
  • http://linuxpoison.blogspot.tw/2012/02/setup-and-configure-bandwidth-limiting.html
  • http://www.pwrusr.com/system-administration/apache-mod_bw-for-virtualhost

下面是我所知道其中进行带宽限制的模块:

Here are the modules that I'm aware of which perform bandwidth limiting:

  • mod_bw
  • mod_bandwidth
  • mod_cband

这篇关于每个Apache虚拟主机限制带宽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆