Openstack安装Dashboard之后网页无法访问

页面报错信息


The server encountered an internal error ormisconfiguration and was unable to complete your request.

Please contact the server administrator atroot@localhost to inform them of the time this error occurred, and the actionsyou performed just before this error.

More information about this error may beavailable in the server error log.

控制节点http报错信息为

[Tue Apr 24 14:40:06.444211 2018] [suexec:notice] [pid 45348] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Apr 24 14:40:06.456994 2018] [auth_digest:notice] [pid 45348] AH01757: generating secret for digest authentication ...
[Tue Apr 24 14:40:06.457595 2018] [lbmethod_heartbeat:notice] [pid 45348] AH02282: No slotmem from mod_heartmonitor
[Tue Apr 24 14:40:06.468699 2018] [mpm_prefork:notice] [pid 45348] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Tue Apr 24 14:40:06.468741 2018] [core:notice] [pid 45348] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Apr 24 14:44:21.353616 2018] [core:error] [pid 45364] [client 192.168.205.32:53450] Script timed out before returning headers: django.wsgi
[Tue Apr 24 14:44:26.491604 2018] [core:error] [pid 45368] [client 192.168.205.32:53453] Script timed out before returning headers: django.wsgi
[Tue Apr 24 14:48:25.817236 2018] [core:error] [pid 45367] [client 192.168.205.32:53451] End of script output before headers: django.wsgi
[Tue Apr 24 14:54:33.425753 2018] [mpm_prefork:notice] [pid 45348] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Apr 24 14:55:10.192037 2018] [suexec:notice] [pid 45904] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Apr 24 14:55:10.209437 2018] [auth_digest:notice] [pid 45904] AH01757: generating secret for digest authentication ...
[Tue Apr 24 14:55:10.210241 2018] [lbmethod_heartbeat:notice] [pid 45904] AH02282: No slotmem from mod_heartmonitor
[Tue Apr 24 14:55:10.222873 2018] [mpm_prefork:notice] [pid 45904] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Tue Apr 24 14:55:10.222934 2018] [core:notice] [pid 45904] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

解决办法:

vim /etc/httpd/conf.d/openstack-dashboard.conf
找到WSGISocketPrefix run/wsgi 在下面加一行代码:
WSGIApplicationGroup %{GLOBAL}
保存,重启httpd服务。

你可能感兴趣的:(Openstack安装Dashboard之后网页无法访问)