Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit bf4a99d

Browse files
committed
Fixes #463: Dashboard doesn't appear if using autonetwork plugin, add dashboard. to vhost.
1 parent 72c4197 commit bf4a99d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

example.config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ vagrant_synced_folder_default_type: nfs
99
# machine name, and IP address for each instance.
1010
vagrant_hostname: drupalvm.dev
1111
vagrant_machine_name: drupalvm
12-
vagrant_ip: 192.168.88.88
12+
vagrant_ip: 0.0.0.0
1313

1414
# Allow Drupal VM to be accessed via a public network interface on your host.
1515
# Vagrant boxes are insecure by default, so be careful. You've been warned!
@@ -98,6 +98,7 @@ apache_vhosts:
9898
ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000{{ pimpmylog_install_dir }}"
9999
100100
- servername: "{{ vagrant_ip }}"
101+
serveralias: "dashboard.{{ vagrant_hostname }}"
101102
documentroot: "{{ dashboard_install_dir }}"
102103

103104
apache_remove_default_vhost: true
@@ -128,7 +129,7 @@ nginx_hosts:
128129
root: "{{ pimpmylog_install_dir }}"
129130
is_php: true
130131

131-
- server_name: "{{ vagrant_ip }}"
132+
- server_name: "{{ vagrant_ip }} dashboard.{{ vagrant_hostname }}"
132133
root: "{{ dashboard_install_dir }}"
133134

134135
nginx_remove_default_vhost: true

provisioning/tasks/www.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
- name: Copy Nginx vhosts into place.
2727
template:
2828
src: ../templates/nginx-vhost.conf.j2
29-
dest: "{{ nginx_vhost_path }}/{{ item.server_name }}.conf"
29+
dest: "{{ nginx_vhost_path }}/{{ item.server_name.split(' ')[0] }}.conf"
3030
force: yes
3131
owner: root
3232
group: root

0 commit comments

Comments
 (0)