浏览代码

Merge pull request #272 from dimitry-unified-streaming/fix-mpm_prefork-jinja

fix(mod_mpm): cast to int to avoid Jinja type mismatch error
tags/v0.39.1
Imran Iqbal 5 年前
父节点
当前提交
e5579930e7
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      apache/files/Debian/mpm/mpm_prefork.conf.jinja
  2. +1
    -1
      apache/files/RedHat/conf.modules.d/00-mpm.conf.jinja

+ 1
- 1
apache/files/Debian/mpm/mpm_prefork.conf.jinja 查看文件

@@ -14,7 +14,7 @@
<IfModule mpm_prefork_module>
StartServers {{ mpm_param['start_servers'] | d('5') }}
MaxRequestWorkers {{ mpm_param['max_request_workers'] | d('150') }}
{%- if mpm_param['max_request_workers'] | d('150') >= 256 %}
{%- if mpm_param['max_request_workers'] | d('150') | int >= 256 %}
ServerLimit {{ mpm_param['max_request_workers'] | d('150') }}
{%- endif %}
MinSpareServers {{ mpm_param['min_spare_servers'] | d('5') }}

+ 1
- 1
apache/files/RedHat/conf.modules.d/00-mpm.conf.jinja 查看文件

@@ -21,7 +21,7 @@ LoadModule {{ mpm_module }}_module modules/mod_{{ mpm_module }}.so
<IfModule mpm_prefork_module>
StartServers {{ mpm_param['start_servers'] | d('5') }}
MaxRequestWorkers {{ mpm_param['max_request_workers'] | d('150') }}
{%- if mpm_param['max_request_workers'] | d('150') >= 256 %}
{%- if mpm_param['max_request_workers'] | d('150') | int >= 256 %}
ServerLimit {{ mpm_param['max_request_workers'] | d('150') }}
{%- endif %}
MinSpareServers {{ mpm_param['min_spare_servers'] | d('5') }}

正在加载...
取消
保存