Load module from {{nginx_dir}}/etc/modules-enabled

This commit is contained in:
Emilien Mantel
2017-03-13 09:51:06 +01:00
parent ae167d3317
commit 7892626fc0
3 changed files with 15 additions and 3 deletions

View File

@@ -6,9 +6,7 @@ user {{ nginx_user }};
worker_processes {{ nginx_worker_processes }};
pid {{ nginx_pid }};
{% if nginx_version.stdout | version_compare('1.9.11', 'ge') %}
{% for module in nginx_dyn_modules -%}
load_module "modules/ngx_{{ module }}_module.so";
{% endfor %}
include {{ nginx_etc_dir }}/modules-enabled/*;
{% endif %}
events {