You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/08/02 14:37:13 UTC

[airavata] branch master updated: Ansible: handle httpd alias with no custom headers

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/master by this push:
     new df4a8a7  Ansible: handle httpd alias with no custom headers
df4a8a7 is described below

commit df4a8a711fd87d758c6562bdb920a605e4f0b279
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon Aug 2 10:37:02 2021 -0400

    Ansible: handle httpd alias with no custom headers
---
 dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2 | 2 +-
 dev-tools/ansible/roles/django/templates/django-vhost.conf.j2     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2 b/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2
index 172e493..16e5fab 100644
--- a/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2
+++ b/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2
@@ -61,7 +61,7 @@
     Alias "{{ alias.url }}" "{{ alias.path }}"
     <Directory "{{ alias.path }}">
         Require all granted
-        {% for header in alias.headers %}
+        {% for header in alias.headers|default([]) %}
         Header set {{ header.name }} {{ header.value }}
         {% endfor %}
     </Directory>
diff --git a/dev-tools/ansible/roles/django/templates/django-vhost.conf.j2 b/dev-tools/ansible/roles/django/templates/django-vhost.conf.j2
index 177e9aa..e5c4398 100644
--- a/dev-tools/ansible/roles/django/templates/django-vhost.conf.j2
+++ b/dev-tools/ansible/roles/django/templates/django-vhost.conf.j2
@@ -52,7 +52,7 @@
     Alias "{{ alias.url }}" "{{ alias.path }}"
     <Directory "{{ alias.path }}">
         Require all granted
-        {% for header in alias.headers %}
+        {% for header in alias.headers|default([]) %}
         Header set {{ header.name }} {{ header.value }}
         {% endfor %}
     </Directory>