e7b51362fd
The default apache log format is noisy. Added a custom log format that matches the other apache log format of projects like keystone Closes-Bug: #1222900 Change-Id: Id9a8c3a4413c778e009c56ffde6b646b8a120c8b
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
<VirtualHost *:80>
|
|
WSGIScriptAlias / %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 /media %HORIZON_DIR%/openstack_dashboard/static
|
|
|
|
<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%
|