Skip to content

Commit e3a9a38

Browse files
author
Pierre Paul Lefebvre
committed
Small fix for limit_conn
1 parent ac9d1b9 commit e3a9a38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/sites-available/drupal-site.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ server {
2525
{% endif %}
2626

2727
server_name {{item.server_name}};
28-
{% if item.limit_conn != 'None' %}
28+
{% if item.limit_conn is defined and item.limit_conn != 'None' %}
2929
limit_conn {{item.limit_conn|default('arbeit 32')}};
3030
{% endif %}
3131

@@ -202,7 +202,7 @@ server {
202202

203203
server_name {{item.server_name}};
204204

205-
{% if item.limit_conn != 'None' %}
205+
{% if item.limit_conn is defined and item.limit_conn != 'None' %}
206206
limit_conn {{item.limit_conn|default('arbeit 32')}};
207207
{% endif %}
208208

0 commit comments

Comments
 (0)