ソースを参照

Added ability to configure KeepAlive option

Sometimes it's necessary optimization in nginx+apache2 environment
master
Alexander Kozlov 9年前
コミット
3e650f5c48
2個のファイルの変更5行の追加1行の削除
  1. +1
    -1
      apache/files/Debian/apache-2.4.config.jinja
  2. +4
    -0
      pillar.example

+ 1
- 1
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

+ 4
- 0
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.

読み込み中…
キャンセル
保存