Wrong apache configuration for openstack-dashboard
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-dashboard (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Openstack-dashboard configuration sets STATIC_ROOT to /usr/share/
$ /usr/share/
Python 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveCon
>>> from django.conf import settings; settings.
'/usr/share/
'/static/'
>>>
But /etc/apache2/
Alias /static /usr/share/
As a result, Apache won't serve the static files directory managed by django (ie. with command manage.py collectstatic). (That static files directory managed by django can be used by rm -rf'ing the static root manually before running collectstatic to avoid problems caused by circular symlinks described in #1326734).
This is something, I heard on the past OpenStack Summit a few times.