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

Commit

Permalink
Fixes #463: Dashboard doesn't appear if using autonetwork plugin, add…
Browse files Browse the repository at this point in the history
… dashboard. to vhost.
  • Loading branch information
geerlingguy committed Feb 23, 2016
1 parent 72c4197 commit bf4a99d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions example.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ vagrant_synced_folder_default_type: nfs
# machine name, and IP address for each instance.
vagrant_hostname: drupalvm.dev
vagrant_machine_name: drupalvm
vagrant_ip: 192.168.88.88
vagrant_ip: 0.0.0.0

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

apache_remove_default_vhost: true
Expand Down Expand Up @@ -128,7 +129,7 @@ nginx_hosts:
root: "{{ pimpmylog_install_dir }}"
is_php: true

- server_name: "{{ vagrant_ip }}"
- server_name: "{{ vagrant_ip }} dashboard.{{ vagrant_hostname }}"
root: "{{ dashboard_install_dir }}"

nginx_remove_default_vhost: true
Expand Down
2 changes: 1 addition & 1 deletion provisioning/tasks/www.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
- name: Copy Nginx vhosts into place.
template:
src: ../templates/nginx-vhost.conf.j2
dest: "{{ nginx_vhost_path }}/{{ item.server_name }}.conf"
dest: "{{ nginx_vhost_path }}/{{ item.server_name.split(' ')[0] }}.conf"
force: yes
owner: root
group: root
Expand Down

0 comments on commit bf4a99d

Please sign in to comment.