Module: Apache::MPM

Included in:
Config
Defined in:
lib/apache/mpm_prefork.rb

Defined Under Namespace

Classes: Prefork

Instance Method Summary collapse

Instance Method Details

#prefork_config(&block) ⇒ Object

Set up the Prefork MPM

prefork_config do
  start 5
  spares 5, 20
  limit 100
  clients 100
  max_requests 1000
end

becomes:

StartServers 5
MinSpareServers 5
MaxSpareServers 20
ServerLimit 100
MaxClients 100
MaxRequestsPerChild 1000


22
23
24
# File 'lib/apache/mpm_prefork.rb', line 22

def prefork_config(&block)
  self + Apache::MPM::Prefork.build(&block)
end