Skip to content

Instantly share code, notes, and snippets.

@innesm4
Created September 4, 2014 10:18
Show Gist options
  • Save innesm4/42d2e1f7fc89b6dfaf43 to your computer and use it in GitHub Desktop.
Save innesm4/42d2e1f7fc89b6dfaf43 to your computer and use it in GitHub Desktop.
Super Fast Apache.conf
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 30
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 150
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 2
##
## 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 mpm_prefork_module>
StartServers 3
MinSpareServers 5
MaxSpareServers 10
ServerLimit 22
MaxClients 22
MaxRequestsPerChild 800
ListenBacklog 100
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment