apache-config-generator/lib/apache/performance.rb
2010-05-05 12:25:07 -04:00

20 lines
435 B
Ruby

module Apache
module Performance
def activate_keepalive(options)
self << "KeepAlive On"
options.each do |option, value|
case option
when :requests
self << "MaxKeepAliveRequests #{value}"
when :timeout
self << "KeepAliveTimeout #{value}"
end
end
end
def prefork_config(&block)
self + Apache::MPM::Prefork.build(&block)
end
end
end