2

I host different sites on the same Linux server (an AWS EC2 instance), I would like to give these sites different limits via a virtualhost specific configuration. Is this possible?

freiheit
  • 14,334
  • 1
  • 46
  • 69
MatteoSp
  • 131
  • 5

2 Answers2

3

No. If you consult the documentation for the prefork MPM (2.4 docs here), you will see that the "context" of all configuration directives have a scope of "server config". This means that they cannot be defined at a VirtualHost level.

MPMs are not the best place to try and implement resource constraints for anything other than the main process itself. You should probably look into modules that are specialized toward throttling virtual hosts.

Andrew B
  • 31,858
  • 12
  • 90
  • 128
1

mpm-itk has a MaxClientsVHost directive, but like the documentation (and Andrew B) says, there's probably better ways of doing what you want, like mod_qos.

DerfK
  • 19,313
  • 2
  • 35
  • 51