Reflect horizon_webroot setting in Apache vhost configuration

Changing only horizon_webroot is not sufficient without adjustments
to horizon Apache vhost.

Change-Id: I25707600c2b05a7f816a7c4ea38c8985717df2d3
This commit is contained in:
Dmitriy Rabotyagov 2024-03-15 20:36:16 +01:00
parent a57aeff938
commit 552fcac122
2 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Change of ``horizon_webroot`` variable is now respected and will be
reflected in Apache configuration to serve static files and define
wsgi path accordingly.

View File

@ -48,7 +48,7 @@ Listen {{ horizon_bind_address }}:{{ horizon_listen_port }}
RequestHeader set {{ horizon_secure_proxy_ssl_header }} "http" RequestHeader set {{ horizon_secure_proxy_ssl_header }} "http"
{% endif %} {% endif %}
WSGIScriptAlias / {{ horizon_lib_wsgi_file }} WSGIScriptAlias {{ horizon_webroot }} {{ horizon_lib_wsgi_file }}
WSGIDaemonProcess horizon user={{ horizon_system_user_name }} group={{ horizon_system_group_name }} processes={{ horizon_wsgi_processes | default(horizon_wsgi_threads) }} threads={{ horizon_wsgi_threads }} python-path={{ horizon_lib_dir | dirname }}/site-packages WSGIDaemonProcess horizon user={{ horizon_system_user_name }} group={{ horizon_system_group_name }} processes={{ horizon_wsgi_processes | default(horizon_wsgi_threads) }} threads={{ horizon_wsgi_threads }} python-path={{ horizon_lib_dir | dirname }}/site-packages
WSGIProcessGroup horizon WSGIProcessGroup horizon
@ -66,7 +66,7 @@ Listen {{ horizon_bind_address }}:{{ horizon_listen_port }}
</Files> </Files>
</Directory> </Directory>
Alias /static {{ horizon_lib_dir }}/static/ Alias {{ horizon_webroot }}/static {{ horizon_lib_dir }}/static/
<Directory {{ horizon_lib_dir }}/static/> <Directory {{ horizon_lib_dir }}/static/>
Options -FollowSymlinks Options -FollowSymlinks