7b105c572e
With keystone's move to /identity, a conflict in for resources was created as both keystone and horizon used /identity. The keystone config took precedence and rendered API output in the horizon UI. This patch sets the root for horizon to /dashboard and serves all horizon content from there. Additionally, a RedirectMatch has been added to the apache config for horizon to redirect '/' to '/dashboard' this will allow the implementation to change without being immediately painful to users. Also made the path '/dashboard/' configurable in stackrc. Closes-Bug: #1478306 Depends-On: I9a04f936ed6d8c14775a332dc28e903992806c42 for devstack-gate changes to remove hard coded horizon url structure assumptions. Change-Id: I6fbca5cea9e44df160afbccc71bd045437657320
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
<VirtualHost *:80>
|
|
WSGIScriptAlias %WEBROOT% %HORIZON_DIR%/openstack_dashboard/wsgi/django.wsgi
|
|
WSGIDaemonProcess horizon user=%USER% group=%GROUP% processes=3 threads=10 home=%HORIZON_DIR% display-name=%{GROUP}
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
|
|
SetEnv APACHE_RUN_USER %USER%
|
|
SetEnv APACHE_RUN_GROUP %GROUP%
|
|
WSGIProcessGroup horizon
|
|
|
|
DocumentRoot %HORIZON_DIR%/.blackhole/
|
|
Alias %WEBROOT%/media %HORIZON_DIR%/openstack_dashboard/static
|
|
Alias %WEBROOT%/static %HORIZON_DIR%/static
|
|
|
|
RedirectMatch "^/$" "%WEBROOT%/"
|
|
|
|
<Directory />
|
|
Options FollowSymLinks
|
|
AllowOverride None
|
|
</Directory>
|
|
|
|
<Directory %HORIZON_DIR%/>
|
|
Options Indexes FollowSymLinks MultiViews
|
|
AllowOverride None
|
|
# Apache 2.4 uses mod_authz_host for access control now (instead of
|
|
# "Allow")
|
|
<IfVersion < 2.4>
|
|
Order allow,deny
|
|
Allow from all
|
|
</IfVersion>
|
|
<IfVersion >= 2.4>
|
|
Require all granted
|
|
</IfVersion>
|
|
</Directory>
|
|
<IfVersion >= 2.4>
|
|
ErrorLogFormat "%{cu}t %M"
|
|
</IfVersion>
|
|
ErrorLog /var/log/%APACHE_NAME%/horizon_error.log
|
|
LogLevel warn
|
|
CustomLog /var/log/%APACHE_NAME%/horizon_access.log combined
|
|
</VirtualHost>
|
|
|
|
WSGISocketPrefix /var/run/%APACHE_NAME%
|