blob: c1dd6934f39e73a85a703ab73ab9db0166640244 [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
Felipe Reyes2c95fcd2014-08-14 17:41:55 +02003 WSGIDaemonProcess horizon user=%USER% group=%GROUP% processes=3 threads=10 home=%HORIZON_DIR% display-name=%{GROUP}
Gabriel Hurley8b3f4382012-06-20 13:14:38 -07004 WSGIApplicationGroup %{GLOBAL}
Dean Troyer5218d452012-02-04 02:13:23 -06005
Jesse Andrews8f3e28c2011-09-27 18:26:27 -07006 SetEnv APACHE_RUN_USER %USER%
Dean Troyer9bb84f02012-01-24 11:45:52 -06007 SetEnv APACHE_RUN_GROUP %GROUP%
Tres Henryca85b792011-10-28 14:00:21 -07008 WSGIProcessGroup horizon
Jesse Andrews8b564a82011-09-11 17:53:34 -07009
Tres Henryca85b792011-10-28 14:00:21 -070010 DocumentRoot %HORIZON_DIR%/.blackhole/
Gabriel Hurleyf1a11ad2012-02-29 01:36:53 -080011 Alias /media %HORIZON_DIR%/openstack_dashboard/static
Jesse Andrews8b564a82011-09-11 17:53:34 -070012
13 <Directory />
14 Options FollowSymLinks
15 AllowOverride None
16 </Directory>
17
Tres Henryca85b792011-10-28 14:00:21 -070018 <Directory %HORIZON_DIR%/>
Jesse Andrews8b564a82011-09-11 17:53:34 -070019 Options Indexes FollowSymLinks MultiViews
Sunil Thaha627d9c72013-04-10 14:11:44 +100020 %HORIZON_REQUIRE%
Jesse Andrews8b564a82011-09-11 17:53:34 -070021 AllowOverride None
22 Order allow,deny
23 allow from all
24 </Directory>
25
Dean Troyer5218d452012-02-04 02:13:23 -060026 ErrorLog /var/log/%APACHE_NAME%/horizon_error.log
Jesse Andrews8b564a82011-09-11 17:53:34 -070027 LogLevel warn
Dean Troyer5218d452012-02-04 02:13:23 -060028 CustomLog /var/log/%APACHE_NAME%/horizon_access.log combined
Jesse Andrews8b564a82011-09-11 17:53:34 -070029</VirtualHost>
30
Dean Troyer5218d452012-02-04 02:13:23 -060031WSGISocketPrefix /var/run/%APACHE_NAME%