server-generated directory index forbidden by Options directive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Bug describe:
httpd error_log:
[Fri Dec 08 11:20:31.803594 2017] [autoindex:error] [pid 78430] [client 192.168.20.67:6467] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive
[Fri Dec 08 11:25:50.652786 2017] [core:error] [pid 78427] [client 192.168.20.67:6471] End of script output before headers: django.wsgi
[Fri Dec 08 11:32:27.556274 2017] [mpm_prefork:
[Fri Dec 08 11:32:48.251386 2017] [suexec:notice] [pid 79126] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Dec 08 11:32:48.266330 2017] [auth_digest:
[Fri Dec 08 11:32:48.267016 2017] [lbmethod_
[Fri Dec 08 11:32:48.277801 2017] [mpm_prefork:
[Fri Dec 08 11:32:48.277830 2017] [core:notice] [pid 79126] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Dec 08 11:32:55.489711 2017] [autoindex:error] [pid 79144] [client 192.168.20.67:6612] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive
[Fri Dec 08 11:37:59.339107 2017] [core:error] [pid 79142] [client 192.168.20.67:6611] End of script output before headers: django.wsgi
curl -l localhost/dashboard
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
root@localhost to inform them of the time this error occurred,
and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
Changed in horizon: | |
assignee: | nobody → jeff wang (jsjtl) |
assignee: | jeff wang (jsjtl) → nobody |
assignee: | nobody → jeff wang (jsjtl) |
summary: |
- End of script output before headers: django.wsgi + server-generated directory index forbidden by Options directive |
fix bug:
Resolvent:
../httpd/ conf.d/ openstack- dashboard. conf
add a line: ------- ------- ------- ------- -- Group %{GLOBAL} # add a line
-------
WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi
WSGIApplication
WSGIScriptAlias /dashboard /usr/share/ openstack- dashboard/ openstack_ dashboard/ wsgi/django. wsgi openstack- dashboard/ static
Alias /dashboard/static /usr/share/
<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