0

我在这里按照安装指南安装了 OpenStack Dashboard: https ://docs.openstack.org/horizo​​n/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/horizo​​n-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>
4

1 回答 1

1

为了不再用我的愚蠢问题打扰您,我在另一个地方找到了解决方案,该解决方案说我必须将 WEBROOT 指令添加到 /etc/openstack-dashboard/Local_settings 缺少的。

谢谢。问候。

于 2021-05-22T06:37:38.017 回答