devstack/files/apache-horizon.template

32 lines
915 B
Plaintext
Raw Normal View History

2011-09-11 17:53:34 -07:00
<VirtualHost *:80>
WSGIScriptAlias / %HORIZON_DIR%/openstack_dashboard/wsgi/django.wsgi
WSGIDaemonProcess horizon user=%USER% group=%GROUP% processes=3 threads=10 home=%HORIZON_DIR%
WSGIApplicationGroup %{GLOBAL}
SetEnv APACHE_RUN_USER %USER%
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/
Alias /media %HORIZON_DIR%/openstack_dashboard/static
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
%HORIZON_REQUIRE%
2011-09-11 17:53:34 -07:00
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/%APACHE_NAME%/horizon_error.log
2011-09-11 17:53:34 -07:00
LogLevel warn
CustomLog /var/log/%APACHE_NAME%/horizon_access.log combined
2011-09-11 17:53:34 -07:00
</VirtualHost>
WSGISocketPrefix /var/run/%APACHE_NAME%