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?
Asked
Active
Viewed 1,916 times
2
-
I doubt it. I suspect you'd have to have multiple versions of httpd, running on different ports. – Tom O'Connor Jun 08 '13 at 16:01
2 Answers
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