diff --git a/files/httpd/qadevel-virtualhost.conf.j2 b/files/httpd/qadevel-virtualhost.conf.j2 index 77f2936dae..b6c3927432 100644 --- a/files/httpd/qadevel-virtualhost.conf.j2 +++ b/files/httpd/qadevel-virtualhost.conf.j2 @@ -2,7 +2,8 @@ # Change this to the domain which points to your host. - ServerName {{ item.name }} + ServerName {{ item.external_name }} + SeverAlias {{ item.name }} DocumentRoot {{ item.document_root }} diff --git a/inventory/group_vars/qa-prod b/inventory/group_vars/qa-prod index 25b6943dda..cf466ea7c2 100644 --- a/inventory/group_vars/qa-prod +++ b/inventory/group_vars/qa-prod @@ -98,3 +98,4 @@ host_backup_targets: ['/var/lib/phabricator/files', '/var/lib/phabricator/repos' static_sites: - name: "{{ inventory_hostname }}" document_root: /srv/content + external_name: "{{ external_hostname }}" diff --git a/inventory/group_vars/qa-stg b/inventory/group_vars/qa-stg index fdf6322446..1a10bbd89c 100644 --- a/inventory/group_vars/qa-stg +++ b/inventory/group_vars/qa-stg @@ -73,6 +73,7 @@ tcp_ports: [ 80, 222, 443, "{{ buildslave_port }}", 3306 ] static_sites: - name: "{{ inventory_hostname }}" document_root: /srv/content + external_name: "{{ external_hostname }}" sslonly: false