2011-09-11 17:53:34 -07:00
|
|
|
<VirtualHost *:80>
|
2015-07-27 17:14:32 -06:00
|
|
|
WSGIScriptAlias %WEBROOT% %HORIZON_DIR%/openstack_dashboard/wsgi/django.wsgi
|
2014-08-14 17:41:55 +02:00
|
|
|
WSGIDaemonProcess horizon user=%USER% group=%GROUP% processes=3 threads=10 home=%HORIZON_DIR% display-name=%{GROUP}
|
2012-06-20 13:14:38 -07:00
|
|
|
WSGIApplicationGroup %{GLOBAL}
|
2012-02-04 02:13:23 -06:00
|
|
|
|
2011-09-27 18:26:27 -07:00
|
|
|
SetEnv APACHE_RUN_USER %USER%
|
2012-01-24 11:45:52 -06:00
|
|
|
SetEnv APACHE_RUN_GROUP %GROUP%
|
2011-10-28 14:00:21 -07:00
|
|
|
WSGIProcessGroup horizon
|
2011-09-11 17:53:34 -07:00
|
|
|
|
2011-10-28 14:00:21 -07:00
|
|
|
DocumentRoot %HORIZON_DIR%/.blackhole/
|
2015-07-27 17:14:32 -06:00
|
|
|
Alias %WEBROOT%/media %HORIZON_DIR%/openstack_dashboard/static
|
|
|
|
Alias %WEBROOT%/static %HORIZON_DIR%/static
|
|
|
|
|
|
|
|
RedirectMatch "^/$" "%WEBROOT%/"
|
2011-09-11 17:53:34 -07:00
|
|
|
|
|
|
|
<Directory />
|
|
|
|
Options FollowSymLinks
|
|
|
|
AllowOverride None
|
|
|
|
</Directory>
|
|
|
|
|
2011-10-28 14:00:21 -07:00
|
|
|
<Directory %HORIZON_DIR%/>
|
2011-09-11 17:53:34 -07:00
|
|
|
Options Indexes FollowSymLinks MultiViews
|
|
|
|
AllowOverride None
|
2014-07-02 18:31:31 +09:00
|
|
|
# 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>
|
2011-09-11 17:53:34 -07:00
|
|
|
</Directory>
|
2015-02-20 16:28:32 -05:00
|
|
|
<IfVersion >= 2.4>
|
|
|
|
ErrorLogFormat "%{cu}t %M"
|
|
|
|
</IfVersion>
|
2012-02-04 02:13:23 -06:00
|
|
|
ErrorLog /var/log/%APACHE_NAME%/horizon_error.log
|
2011-09-11 17:53:34 -07:00
|
|
|
LogLevel warn
|
2012-02-04 02:13:23 -06:00
|
|
|
CustomLog /var/log/%APACHE_NAME%/horizon_access.log combined
|
2011-09-11 17:53:34 -07:00
|
|
|
</VirtualHost>
|
|
|
|
|
2012-02-04 02:13:23 -06:00
|
|
|
WSGISocketPrefix /var/run/%APACHE_NAME%
|