airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject airavata git commit: Adding default vhost config
Date Fri, 28 Apr 2017 14:58:23 GMT
Repository: airavata
Updated Branches:
  refs/heads/master a9073175f -> 10d7c029a


Adding default vhost config


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/10d7c029
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/10d7c029
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/10d7c029

Branch: refs/heads/master
Commit: 10d7c029ae0bfcda0a2f78b2bd0e015fb59b9721
Parents: a907317
Author: Marcus Christie <machristie@apache.org>
Authored: Fri Apr 28 10:32:05 2017 -0400
Committer: Marcus Christie <machristie@apache.org>
Committed: Fri Apr 28 10:57:03 2017 -0400

----------------------------------------------------------------------
 dev-tools/ansible/roles/pga/files/default.conf | 5 +++++
 dev-tools/ansible/roles/pga/tasks/main.yml     | 6 ++++++
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/10d7c029/dev-tools/ansible/roles/pga/files/default.conf
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/pga/files/default.conf b/dev-tools/ansible/roles/pga/files/default.conf
new file mode 100644
index 0000000..d5bf54b
--- /dev/null
+++ b/dev-tools/ansible/roles/pga/files/default.conf
@@ -0,0 +1,5 @@
+# Setup default virtual host as a catchall to prevent resolving to the first defined virtual
host
+# This will show the welcome page when requesting on the ip address or server default hostname
+<VirtualHost _default_:80>
+    DocumentRoot "/www/default"
+</VirtualHost>

http://git-wip-us.apache.org/repos/asf/airavata/blob/10d7c029/dev-tools/ansible/roles/pga/tasks/main.yml
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/pga/tasks/main.yml b/dev-tools/ansible/roles/pga/tasks/main.yml
index 61d789e..9e9cb74 100644
--- a/dev-tools/ansible/roles/pga/tasks/main.yml
+++ b/dev-tools/ansible/roles/pga/tasks/main.yml
@@ -140,6 +140,12 @@
     - restart httpd
   when: vhost_ssl
 
+- name: copy default virtual host file
+  copy: src=default.conf dest={{ httpd_confd_file_location[ansible_os_family] }} backup=yes
+  become: yes
+  notify:
+    - restart httpd
+
 - name: copy pga user's SSH key for the gateway data store
   authorized_key:
     user: "{{user}}"


Mime
View raw message