Making the httpd prefork basic settings configurable.
I kept the defaults as they where, to avoid surprises. (150 httpd processes simultaneously answering? Too much for my machines) svn path=/nixos/trunk/; revision=21220
This commit is contained in:
parent
8874226fa3
commit
41bf426a66
@ -283,8 +283,8 @@ let
|
||||
PidFile ${mainCfg.stateDir}/httpd.pid
|
||||
|
||||
<IfModule prefork.c>
|
||||
MaxClients 150
|
||||
MaxRequestsPerChild 0
|
||||
MaxClients ${toString mainCfg.maxClients}
|
||||
MaxRequestsPerChild ${toString mainCfg.maxRequestsPerChild}
|
||||
</IfModule>
|
||||
|
||||
${let
|
||||
@ -486,6 +486,18 @@ in
|
||||
"Options appended to the PHP configuration file <filename>php.ini</filename>.";
|
||||
};
|
||||
|
||||
maxClients = mkOption {
|
||||
default = 150;
|
||||
example = 8;
|
||||
description = "Maximum number of httpd processes (prefork)";
|
||||
};
|
||||
|
||||
maxRequestsPerChild = mkOption {
|
||||
default = 0;
|
||||
example = 500;
|
||||
description =
|
||||
"Maximum number of httpd requests answered per httpd child (prefork), 0 means unlimited";
|
||||
};
|
||||
}
|
||||
|
||||
# Include the options shared between the main server and virtual hosts.
|
||||
|
Loading…
Reference in New Issue
Block a user