blob: e54f16ced578450318c10185f17cbd64aaf91854 [file] [log] [blame]
Jesse Andrews8b564a82011-09-11 17:53:34 -07001<VirtualHost *:80>
Gabriel Hurleyf1a11ad2012-02-29 01:36:53 -08002 WSGIScriptAlias / %HORIZON_DIR%/openstack_dashboard/wsgi/django.wsgi
Dean Troyer5218d452012-02-04 02:13:23 -06003 WSGIDaemonProcess horizon user=%USER% group=%GROUP% processes=3 threads=10 home=%HORIZON_DIR%
4
Jesse Andrews8f3e28c2011-09-27 18:26:27 -07005 SetEnv APACHE_RUN_USER %USER%
Dean Troyer9bb84f02012-01-24 11:45:52 -06006 SetEnv APACHE_RUN_GROUP %GROUP%
Tres Henryca85b792011-10-28 14:00:21 -07007 WSGIProcessGroup horizon
Jesse Andrews8b564a82011-09-11 17:53:34 -07008
Tres Henryca85b792011-10-28 14:00:21 -07009 DocumentRoot %HORIZON_DIR%/.blackhole/
Gabriel Hurleyf1a11ad2012-02-29 01:36:53 -080010 Alias /media %HORIZON_DIR%/openstack_dashboard/static
Jesse Andrews8b564a82011-09-11 17:53:34 -070011
12 <Directory />
13 Options FollowSymLinks
14 AllowOverride None
15 </Directory>
16
Tres Henryca85b792011-10-28 14:00:21 -070017 <Directory %HORIZON_DIR%/>
Jesse Andrews8b564a82011-09-11 17:53:34 -070018 Options Indexes FollowSymLinks MultiViews
19 AllowOverride None
20 Order allow,deny
21 allow from all
22 </Directory>
23
Dean Troyer5218d452012-02-04 02:13:23 -060024 ErrorLog /var/log/%APACHE_NAME%/horizon_error.log
Jesse Andrews8b564a82011-09-11 17:53:34 -070025 LogLevel warn
Dean Troyer5218d452012-02-04 02:13:23 -060026 CustomLog /var/log/%APACHE_NAME%/horizon_access.log combined
Jesse Andrews8b564a82011-09-11 17:53:34 -070027</VirtualHost>
28
Dean Troyer5218d452012-02-04 02:13:23 -060029WSGISocketPrefix /var/run/%APACHE_NAME%