# ServerType is either inetd, or standalone. Inetd mode is only supported on
# Unix platforms.
#
-ServerType standalone
+#ServerType standalone
#
# ServerRoot: The top of the directory tree under which the server's
# this file will be created when you run Apache) then you *must* ensure that
# no two invocations of Apache share the same scoreboard file.
#
+<IfModule !dexter.c>
ScoreBoardFile logs/apache_runtime_status
+</IfModule>
#
# In the standard configuration, the server will process this file,
#
KeepAliveTimeout 15
-#
-# Server-pool size regulation. Rather than making you guess how many
-# server processes you need, Apache dynamically adapts to the load it
-# sees --- that is, it tries to maintain enough server processes to
-# handle the current load, plus a few spare servers to handle transient
-# load spikes (e.g., multiple simultaneous requests from a single
-# Netscape browser).
-#
-# It does this by periodically checking how many servers are waiting
-# for a request. If there are fewer than MinSpareServers, it creates
-# a new spare. If there are more than MaxSpareServers, some of the
-# spares die off. The default values are probably OK for most sites.
-#
-MinSpareServers 5
-MaxSpareServers 10
-
-#
-# Number of servers to start initially --- should be a reasonable ballpark
-# figure.
-#
-StartServers 5
+##
+## Server-Pool Size Regulation (MPM specific)
+##
+
+# prefork MPM
+# StartServers ......... number of server processes to start
+# MinSpareServers ...... minimum number of server processes which are kept spare
+# MaxSpareServers ...... maximum number of server processes which are kept spare
+# MaxClients ........... maximum number of server processes allowed to start
+# MaxRequestsPerChild .. maximum number of requests a server process serves
+<IfModule prefork.c>
+StartServers 5
+MinSpareServers 5
+MaxSpareServers 10
+MaxClients 20
+MaxRequestsPerChild 0
+</IfModule>
-#
-# Limit on total number of servers running, i.e., limit on the number
-# of clients who can simultaneously connect --- if this limit is ever
-# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
-# It is intended mainly as a brake to keep a runaway server from taking
-# the system with it as it spirals down...
-#
-MaxClients 150
+# pthread MPM
+# StartServers ......... initial number of server processes to start
+# MaxClients ........... maximum number of server processes allowed to start
+# MinSpareThreads ...... minimum number of worker threads which are kept spare
+# MaxSpareThreads ...... maximum number of worker threads which are kept spare
+# ThreadsPerChild ...... constant number of worker threads in each server process
+# MaxRequestsPerChild .. maximum number of requests a server process serves
+<IfModule mpmt_pthread.c>
+StartServers 5
+MaxClients 8
+MinSpareThreads 5
+MaxSpareThreads 10
+ThreadsPerChild 20
+MaxRequestsPerChild 0
+</IfModule>
-#
-# MaxRequestsPerChild: the number of requests each child process is
-# allowed to process before the child dies. The child will exit so
-# as to avoid problems after prolonged use when Apache (and maybe the
-# libraries it uses) leak memory or other resources. On most systems, this
-# isn't really needed, but a few (such as Solaris) do have notable leaks
-# in the libraries. For these platforms, set to something like 10000
-# or so; a setting of 0 means unlimited.
-#
-# NOTE: This value does not include keepalive requests after the initial
-# request per connection. For example, if a child process handles
-# an initial request and 10 subsequent "keptalive" requests, it
-# would only count as 1 request towards this limit.
-#
-MaxRequestsPerChild 0
+# dexter MPM
+# NumServers ........... constant number of server processes
+# StartThreads ......... initial number of worker threads in each server process
+# MinSpareThreads ...... minimum number of worker threads which are kept spare
+# MaxSpareThreads ...... maximum number of worker threads which are kept spare
+# MaxThreadsPerChild ... maximum number of worker threads in each server process
+# MaxRequestsPerChild .. maximum number of connections per server process (then it dies)
+<IfModule dexter.c>
+NumServers 5
+StartThreads 5
+MinSpareThreads 5
+MaxSpareThreads 10
+MaxThreadsPerChild 20
+MaxRequestsPerChild 0
+</IfModule>
#
# Listen: Allows you to bind Apache to specific IP addresses and/or