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?

1
  • I doubt it. I suspect you'd have to have multiple versions of httpd, running on different ports. Jun 8, 2013 at 16:01

2 Answers 2

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.

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.