diff --git a/ansible/roles/horizon/templates/horizon.conf.j2 b/ansible/roles/horizon/templates/horizon.conf.j2 index d6d684873b..7d352060ee 100644 --- a/ansible/roles/horizon/templates/horizon.conf.j2 +++ b/ansible/roles/horizon/templates/horizon.conf.j2 @@ -16,7 +16,11 @@ Listen {{ api_interface_address }}:{{ horizon_port }} Require all granted +{% if kolla_base_distro == 'ubuntu' and kolla_install_type == 'binary' %} + Alias /static /var/lib/openstack-dashboard/static +{% else %} Alias /static {{ python_path }}/static +{% endif %} SetHandler None