Update permissions for apache >= 2.4

When running in apache 2.4(Debian 10), the following error was observed
when acessing the openstack dasboard:
AH01626: authorization result of Require all denied: denied.

This change allow to use the correct wsgi file and apply the correct
permissions based on Apache version

Change-Id: I57cdc73b3c3e466e77f6ed2d21671acb8157df84
This commit is contained in:
Andre 2020-05-08 14:20:02 +01:00
parent 9678045a70
commit 1ec9350823

View File

@ -46,10 +46,14 @@
WSGIApplicationGroup %{GLOBAL} WSGIApplicationGroup %{GLOBAL}
<Directory {{ horizon_lib_wsgi_file | dirname }}> <Directory {{ horizon_lib_wsgi_file | dirname }}>
<Files django.wsgi> <Files {{ horizon_lib_wsgi_file | basename }} >
<IfVersion < 2.4>
Order allow,deny Order allow,deny
allow from all Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted Require all granted
</IfVersion>
</Files> </Files>
</Directory> </Directory>
@ -57,9 +61,13 @@
<Directory {{ horizon_lib_dir }}/static/> <Directory {{ horizon_lib_dir }}/static/>
Options -FollowSymlinks Options -FollowSymlinks
<IfVersion < 2.4>
AllowOverride None AllowOverride None
Order allow,deny Order allow,deny
allow from all Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted Require all granted
</IfVersion>
</Directory> </Directory>
</VirtualHost> </VirtualHost>