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/09/24 03:59:40 UTC

[airavata] branch master updated: Redirect alias domain to ssl domain

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 007e251  Redirect alias domain to ssl domain
007e251 is described below

commit 007e251bb2dea831f8acf1075e38afd9c3e1eafc
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Mon Sep 23 20:40:06 2019 -0700

    Redirect alias domain to ssl domain
---
 dev-tools/ansible/roles/pga/templates/pga-ssl-vhost.conf.j2 | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dev-tools/ansible/roles/pga/templates/pga-ssl-vhost.conf.j2 b/dev-tools/ansible/roles/pga/templates/pga-ssl-vhost.conf.j2
index 368a988..20c8f69 100644
--- a/dev-tools/ansible/roles/pga/templates/pga-ssl-vhost.conf.j2
+++ b/dev-tools/ansible/roles/pga/templates/pga-ssl-vhost.conf.j2
@@ -18,14 +18,12 @@
     ## Redirect all http traffic to https
     RewriteEngine On
     RewriteCond %{HTTPS} off
-    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
+    # Redirect to SSL domain name
+    RewriteRule (.*) https://{{ vhost_servername }}%{REQUEST_URI}
 </VirtualHost>
 
 <VirtualHost *:{{pga_default_https_port}}>
     ServerName {{ vhost_servername }}
-    {% if vhost_serveralias is defined %}
-    ServerAlias {{ vhost_serveralias }}
-    {% endif %}
 
     DocumentRoot {{ doc_root_dir }}/public
     <Directory "{{ doc_root_dir }}/public">