diff --git a/apache/files/Debian/apache-2.4.config.jinja b/apache/files/Debian/apache-2.4.config.jinja index c2967d7..854fc2d 100644 --- a/apache/files/Debian/apache-2.4.config.jinja +++ b/apache/files/Debian/apache-2.4.config.jinja @@ -91,7 +91,7 @@ Timeout 300 # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # -KeepAlive On +KeepAlive {{ salt['pillar.get']('apache:keepalive', 'On') }} # # MaxKeepAliveRequests: The maximum number of requests to allow diff --git a/pillar.example b/pillar.example index f657103..9309aaf 100644 --- a/pillar.example +++ b/pillar.example @@ -116,6 +116,10 @@ apache: disabled: # List modules to disable - rewrite + # KeepAlive: Whether or not to allow persistent connections (more than + # one request per connection). Set to "Off" to deactivate. + keepalive: On + security: # can be Full | OS | Minimal | Minor | Major | Prod # where Full conveys the most information, and Prod the least.