This feature is experimental: expect things to break and documentation to be innacurate and change inadvertantly. Use at your own risks.
  • web

Apache Official documentation

Notes

For better user experience you may prefer the use of the reload task instead of restart.

Commands

devops apache start
Start Apache if stopped
devops apache stop
Stop Apache if started
devops apache reload
Reload Apache, reload the configuration and perform a graceful restart
devops apache restart
Restart Apache, reload the configuration (but kills existing connection)

Configuration

event.maxclients integer
Maximum number of simultaneous client connections
Default: 150
event.maxrequestsperchild integer
Maximum number of requests a server process serves.
event.maxsparethreads integer
Maximum number of worker threads which are kept spare.
Default: 75
event.minsparethreads integer
Minimum number of worker threads which are kept spare,
Default: 25
event.startservers integer
Initial number of server processes to start.
Default: 5
event.threadlimit integer
ThreadsPerChild can be changed to this maximum value during a graceful restart. ThreadLimit can only be changed by stopping and starting Apache.
Default: 64
event.threadsperchild integer
Constant number of worker threads in each server process.
Default: 25
group string
Apache running group.
Default: www-data
keepalive string
Whether or not to allow persistent connections.
Default: true
keepalivetimout integer
Number of seconds to wait for the next request from the same client on the same connection.
Default: 5
maxkeepaliverequests integer
The maximum number of requests to allow during a persistent connection.
Default: 100
prefork.maxclients integer
Maximum number of server processes allowed to start.
Default: 150
prefork.maxrequestsperchild integer
Maximum number of requests a server process serves.
Default: 4000
prefork.maxspareservers integer
Maximum number of server processes which are kept spare.
Default: 10
prefork.minspareservers integer
Minimum number of server processes which are kept spare.
Default: 2
prefork.startservers integer
Number of server processes to start.
Default: 5
timeout integer
The number of seconds before receives and sends time out.
Default: 300
user string
Apache running user.
Default: www-data
worker.maxclients integer
Maximum number of simultaneous client connections
Default: 150
worker.maxrequestsperchild integer
Maximum number of requests a server process serves.
worker.maxsparethreads integer
Maximum number of worker threads which are kept spare.
Default: 75
worker.minsparethreads integer
Minimum number of worker threads which are kept spare,
Default: 25
worker.startservers integer
Initial number of server processes to start.
Default: 5
worker.threadlimit integer
ThreadsPerChild can be changed to this maximum value during a graceful restart. ThreadLimit can only be changed by stopping and starting Apache.
Default: 64
worker.threadsperchild integer
Constant number of worker threads in each server process.
Default: 25