Fix httpd configurations to adapt Wallaby changes

This commit is contained in:
sean-lau 2021-08-28 10:15:57 +08:00
parent 561325aeaf
commit 5b5af6dee1
2 changed files with 31 additions and 17 deletions

View File

@ -1,19 +1,30 @@
WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi
<VirtualHost *:80>
ServerName openstack-dashboard.example.com
ServerAdmin webmaster@openstack-dashboard.example.com
WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /dashboard/static /usr/share/openstack-dashboard/static
ErrorLog /var/log/httpd/openstack-dashboard-error_log
TransferLog /var/log/httpd/openstack-dashboard-access_log
<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
Options All
AllowOverride All
Require all granted
</Directory>
WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi.py
WSGIDaemonProcess horizon user=apache group=apache processes=3 threads=10
WSGIApplicationGroup %{GLOBAL}
WSGIProcessGroup horizon
SetEnv APACHE_RUN_USER apache
SetEnv APACHE_RUN_GROUP apache
<Directory /usr/share/openstack-dashboard/static>
Options All
AllowOverride All
Require all granted
</Directory>
DocumentRoot /usr/share/openstack-dashboard/
Alias /media /usr/share/openstack-dashboard/media
Alias /static /usr/share/openstack-dashboard/static
<Location /static>
SetOutputFilter DEFLATE
ExpiresActive On
ExpiresDefault "access plus 1 month"
</Location>
<Directory /usr/share/openstack-dashboard/>
Options FollowSymLinks MultiViews
AllowOverride None
Require all granted
</Directory>
</VirtualHost>

View File

@ -1,7 +1,7 @@
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
Name: openstack-dashboard
Version: 19.2.0
Release: 2
Release: 3
Summary: OpenStack Dashboard (Horizon)
License: Apache-2.0 and BSD
URL: http://horizon.openstack.org/
@ -345,7 +345,10 @@ systemctl daemon-reload >/dev/null 2>&1 || :
%{python3_sitelib}/openstack_auth
%changelog
* Thu Aug 12 2021 liusheng <liusheng2048@gmail.com> 19.2.0-1
* Sat Aug 28 2021 liusheng <liusheng2048@gmail.com> 19.2.0-3
- Fix wrong httpd configuration
* Thu Aug 12 2021 liusheng <liusheng2048@gmail.com> 19.2.0-2
- Fix wrong requires of python3-oslo-config
* Thu Aug 12 2021 liusheng <liusheng2048@gmail.com> 19.2.0-1