[原][openstack-pike][controller node][issue-3][horizon] dashboard show internal error 500 Cannot serve directory /var/www/html
2024-10-19 00:22:34
问题点:
安装完pike后发现只能使用 ip:80 登录到http的主页面 不能使用 http://controller_ip:80/dashboard 登录openstack登录页面。如下图
重启httpd 服务
systemctl restart httpd
查看日志 /var/log/httpd/error_log
[core:error] [pid ] [client 192.168.70.1:] End of script output before headers: django.wsgi
[autoindex:error] [pid ] [client 192.168.70.1:]
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 ] [client 192.168.70.1:] 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
最新文章
- WinForm设置控件焦点focus
- 1Z0-053 争议题目解析707
- IOS - Create Push Segue Animation Without UINavigationController
- git 使用笔记
- CollectionView 简用
- 2014 Super Training #8 B Consecutive Blocks --排序+贪心
- OpenJudge 2809 计算2的N次方
- wuzhicms访问统计实现方法
- 各种div+css居中方式调整(转载)
- (模拟 打好基础)nyoj1363-计划日
- awk 同时指定多个分隔符
- 双列集合Map
- linux的centos如何查看java的安装路径
- python中的函数嵌套
- DevOps - CI - SVN
- 英语笔记-some words about description of girl
- [leetcode]278. First Bad Version首个坏版本
- ES6躬行记(22)——Promise
- JavaScript进阶--慕课网学习笔记
- javascript制作公式编辑器,函数编辑器和图形绘制
热门文章
- pygame 笔记-10 摩擦力与屏幕环绕
- mvn -N和-U的用法
- 转: 关于linux用户时间与系统时间的说明
- (2):Mysql 查看、创建、更改 数据库和表
- CentOS7本地安装MySQL5.7
- 使用pyenv安装多个Python版本
- 十进制转为x进制的递归代码
- webstorm11.0下载地址和webstorm11.0破解程序patcher.exe下载使用方法说明 前端IDE工具的利器
- 单片机成长之路(51基础篇) - 006 在Linux下搭建51单片机的开发烧写环境
- MySQL技术内幕读书笔记(八)——事务