diff --git a/apache/files/Debian/mpm/mpm_prefork.conf.jinja b/apache/files/Debian/mpm/mpm_prefork.conf.jinja index 5b6eb81..d07c9ed 100644 --- a/apache/files/Debian/mpm/mpm_prefork.conf.jinja +++ b/apache/files/Debian/mpm/mpm_prefork.conf.jinja @@ -14,7 +14,7 @@ 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') }} diff --git a/apache/files/RedHat/conf.modules.d/00-mpm.conf.jinja b/apache/files/RedHat/conf.modules.d/00-mpm.conf.jinja index 8831d12..336c034 100644 --- a/apache/files/RedHat/conf.modules.d/00-mpm.conf.jinja +++ b/apache/files/RedHat/conf.modules.d/00-mpm.conf.jinja @@ -21,7 +21,7 @@ LoadModule {{ mpm_module }}_module modules/mod_{{ mpm_module }}.so 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') }}