openstack train搭建完成后,访问dashboard报错
not found
改了/etc/httpd/conf.d/openstack-dashboard.conf
#WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
#Alias /dashboard/static /usr/share/openstack-dashboard/static
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /static /usr/share/openstack-dashboard/static
浏览器输入ip可以登录dashboard,管理员和项目下的选项访问也正常,但是身份管理下的选项访问报错。
继续修改
vim /usr/share/openstack-dashboard/openstack_dashboard/defaults.py
WEBROOT = '/dashboard' # from openstack_auth
vim /usr/share/openstack-dashboard/openstack_dashboard/test/settings.py
WEBROOT = '/dashboard'
vim /usr/share/openstack-dashboard/static/dashboard/js/2386ed69f0d7.js
var STATIC_URL="/dashboard/static/";var WEBROOT="/dashboard/";/*!
说明:js文件有3个,找到有WEBROOT选项的那个文件修改。
将/etc/httpd/conf.d/openstack-dashboard.conf内容改回来
WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /dashboard/static /usr/share/openstack-dashboard/static
重启httpd服务。