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 2019/04/10 14:28:24 UTC

[airavata] branch develop updated: Adding /media mapping for beta.simccs.org

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

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


The following commit(s) were added to refs/heads/develop by this push:
     new fbe83f3  Adding /media mapping for beta.simccs.org
fbe83f3 is described below

commit fbe83f30b668a07cf494d5c4bdb2c9ec8ca4febb
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Wed Apr 10 09:56:10 2019 -0400

    Adding /media mapping for beta.simccs.org
---
 .../scigap/develop/host_vars/simccs/files/django-ssl-vhost.conf.j2  | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-tools/ansible/inventories/scigap/develop/host_vars/simccs/files/django-ssl-vhost.conf.j2 b/dev-tools/ansible/inventories/scigap/develop/host_vars/simccs/files/django-ssl-vhost.conf.j2
index 8b749ab..b6be6da 100644
--- a/dev-tools/ansible/inventories/scigap/develop/host_vars/simccs/files/django-ssl-vhost.conf.j2
+++ b/dev-tools/ansible/inventories/scigap/develop/host_vars/simccs/files/django-ssl-vhost.conf.j2
@@ -53,6 +53,12 @@
     AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
     </Directory>
 
+    Alias /media/ {{ airavata_django_checkout }}/django_airavata/media/
+
+    <Directory {{ airavata_django_checkout }}/django_airavata/media>
+        Require all granted
+    </Directory>
+
     WSGIDaemonProcess {{ vhost_servername }} display-name=%{GROUP} python-home={{ doc_root_dir }}/venv python-path={{ doc_root_dir }}/airavata-django-portal processes={{ django_wsgi_processes }} user={{ user }} group={{ group }}
     WSGIProcessGroup {{ vhost_servername }}