我在这里按照安装指南安装了 OpenStack Dashboard: https ://docs.openstack.org/horizon/wallaby/install/install-rdo.html
不是很复杂,但仪表板不起作用。第一次访问后,url http://localhost/dashboard/ 就只有“Forbidden”状态。然后我调查了 /etc/httpd/conf.d/openstack-dashboard.conf 文件(它的内容如下)并注意到wsgi
系统上缺少整个目录。我尝试更正WSGISriptAlias
到 /usr/share/openstack-dashboard 目录结构中的某个其他位置(例如,我尝试使用 /usr/share/openstack-dashboard/openstack_dashboard/wsgi.py),但随后状态为Not Found和 URL被重定向到 http://localhost/auth/login/?next=/dashboard/。
我对 Web 开发不是很熟悉,所以我不完全理解它的含义,但之后我试图在互联网上找到一些解决方案,我在 Ask OpenStack 上找到了这个: https ://ask.openstack.org/en/question /13952/horizon-apache-launch-error/
我尝试使用该解决方案,但这对我没有帮助,根据该页面配置服务器后,页面上没有任何内容,只有“未找到”。请有人可以帮我找到解决这个问题的方法吗?谢谢。
以下是原始 /etc/httpd/conf.d/openstack-dashboard.conf 文件的内容:
WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi
WSGIApplicationGroup %{GLOBAL}
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
allow from all
</Directory>
<Directory /usr/share/openstack-dashboard/static>
Options All
AllowOverride All
Require all granted
allow from all
</Directory>