[原][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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM