zoukankan      html  css  js  c++  java
  • [原][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

  • 相关阅读:
    php面试题
    php最基本的缓存之一页面缓存
    原生PHP生成验证码
    原生PHP实现上传大图片与缩略图
    PHP实现连接数据库下载与导入csv格式文件
    ScrollTop火狐谷歌不兼容
    今天学的是 HTML基本元素、基本语法元素特点等,就发图片吧。
    第三天的学习知识HTML5常用的重要单词
    第二天学习了设计方面的知识
    HTLM5第一天的内容
  • 原文地址:https://www.cnblogs.com/horizonli/p/9593840.html
Copyright © 2011-2022 走看看