Skip to content

Commit

Permalink
Move mpm_worker 'ServerLimit' line in ERB
Browse files Browse the repository at this point in the history
It turns out that the order of MPM directives is important in certain
cases. Without this commit, the 'ServerLimit' directive was being
processed too late to be used in calculations for 'ThreadsPerChild'.

This commit moves the 'ServerLimit' directive to the top of the
directives in the ERB. This was based on Apache documentation and an
example config of theirs.
  • Loading branch information
trlinkin committed May 8, 2013
1 parent 77f4593 commit 0125341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/mod/worker.conf.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<IfModule mpm_worker_module>
ServerLimit <%= @serverlimit %>
StartServers <%= @startservers %>
MaxClients <%= @maxclients %>
MinSpareThreads <%= @minsparethreads %>
MaxSpareThreads <%= @maxsparethreads %>
ThreadsPerChild <%= @threadsperchild %>
MaxRequestsPerChild <%= @maxrequestsperchild %>
ServerLimit <%= @serverlimit %>
</IfModule>

0 comments on commit 0125341

Please sign in to comment.