1

Can one apache instance run different MPM's for different sites?

For example, I got a server with apache, and two sites: www.site1.com and www.site2.com.

Can I possibly have mpm_prefork_module on site1 and mpm_worker_module for site2?

Alexander Capone
  • 528
  • 3
  • 16

1 Answers1

1

You'd need to start two instances of Apache, Listening on non overlapping ip:port combinations, to use two different MPM's. You can't use a different MPM with just VirtualHost'ing.

covener
  • 17,402
  • 2
  • 31
  • 45
  • Hi @covener, Can I ask you as well, there are directives in MPM settings. Do they share across the sites? I mean, if MaxClients set to 50 - that means, 50 clients for both in combination, rather than 50 clients for each site? – Alexander Capone Dec 25 '15 at 08:03
  • The mpm directives are global, not per site/vhost – covener Dec 25 '15 at 12:27