[原][openstack-pike][controller node][issue-3][horizon] dashboard show internal error 500 Cannot serve directory /var/www/html
问题点:
安装完pike后发现只能使用 ip:80 登录到http的主页面 不能使用 http://controller_ip:80/dashboard 登录openstack登录页面。如下图
重启httpd 服务
systemctl restart httpd
查看日志 /var/log/httpd/error_log
[core:error] [pid 3285] [client 192.168.70.1:49887] End of script output before headers: django.wsgi [autoindex:error] [pid 3481] [client 192.168.70.1:52306]
AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html) found,
and server-generated directory index forbidden by Options directive [core:error] [pid 3285] [client 192.168.70.1:52507] Script timed out before returning headers: django.wsgi
查了一下 这个horizon的一个bug:
https://bugs.launchpad.net/horizon/+bug/1737092
具体解决方法:
fix bug: Resolvent: ../httpd/conf.d/openstack-dashboard.conf add a line: ------------------------------------- WSGIDaemonProcess dashboard WSGIProcessGroup dashboard WSGISocketPrefix run/wsgi WSGIApplicationGroup %{GLOBAL} <======== add a line WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi Alias /dashboard/static /usr/share/openstack-dashboard/static <Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi> Options All AllowOverride All Require all granted </Directory> <Directory /usr/share/openstack-dashboard/static> Options All AllowOverride All Require all granted </Directory> ------------------------------------- systemctl restart httpd Because there is no time to look at the code, give the solution for the time being
vim /etc/httpd/conf.d/openstack-dashboard.conf
重启httpd 服务
systemctl restart httpd
作者:horizonli
出处:http://www.cnblogs.com/horizonli/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
如果您认为文章还不错或者有所收获,您可以通过扫描下方的二维码进行随性打赏(¥1/¥2/¥5)以及点击左下角的【好文要顶】按钮以示支持,或者扫描关注即将写作的公众号二维码,因为这几种方式都是支持我继续写作,分享的最大动力!公众号将记录工作生活,技术内容,个性观点等内容,欢迎您的关注
出处:http://www.cnblogs.com/horizonli/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
支付宝(alipay) 二维码打赏 |
微信(wechat) 二维码打赏 JUST LI(**波) |
微信公众号: 木子李的菜田 |