| Jesse Andrews | 8b564a8 | 2011-09-11 17:53:34 -0700 | [diff] [blame] | 1 | <VirtualHost *:80> | 
| Gabriel Hurley | f1a11ad | 2012-02-29 01:36:53 -0800 | [diff] [blame] | 2 | WSGIScriptAlias / %HORIZON_DIR%/openstack_dashboard/wsgi/django.wsgi | 
| Felipe Reyes | 2c95fcd | 2014-08-14 17:41:55 +0200 | [diff] [blame] | 3 | WSGIDaemonProcess horizon user=%USER% group=%GROUP% processes=3 threads=10 home=%HORIZON_DIR% display-name=%{GROUP} | 
| Gabriel Hurley | 8b3f438 | 2012-06-20 13:14:38 -0700 | [diff] [blame] | 4 | WSGIApplicationGroup %{GLOBAL} | 
| Dean Troyer | 5218d45 | 2012-02-04 02:13:23 -0600 | [diff] [blame] | 5 |  | 
| Jesse Andrews | 8f3e28c | 2011-09-27 18:26:27 -0700 | [diff] [blame] | 6 | SetEnv APACHE_RUN_USER %USER% | 
| Dean Troyer | 9bb84f0 | 2012-01-24 11:45:52 -0600 | [diff] [blame] | 7 | SetEnv APACHE_RUN_GROUP %GROUP% | 
| Tres Henry | ca85b79 | 2011-10-28 14:00:21 -0700 | [diff] [blame] | 8 | WSGIProcessGroup horizon | 
| Jesse Andrews | 8b564a8 | 2011-09-11 17:53:34 -0700 | [diff] [blame] | 9 |  | 
| Tres Henry | ca85b79 | 2011-10-28 14:00:21 -0700 | [diff] [blame] | 10 | DocumentRoot %HORIZON_DIR%/.blackhole/ | 
| Gabriel Hurley | f1a11ad | 2012-02-29 01:36:53 -0800 | [diff] [blame] | 11 | Alias /media %HORIZON_DIR%/openstack_dashboard/static | 
| Jesse Andrews | 8b564a8 | 2011-09-11 17:53:34 -0700 | [diff] [blame] | 12 |  | 
|  | 13 | <Directory /> | 
|  | 14 | Options FollowSymLinks | 
|  | 15 | AllowOverride None | 
|  | 16 | </Directory> | 
|  | 17 |  | 
| Tres Henry | ca85b79 | 2011-10-28 14:00:21 -0700 | [diff] [blame] | 18 | <Directory %HORIZON_DIR%/> | 
| Jesse Andrews | 8b564a8 | 2011-09-11 17:53:34 -0700 | [diff] [blame] | 19 | Options Indexes FollowSymLinks MultiViews | 
|  | 20 | AllowOverride None | 
| Noboru Iwamatsu | b4495eb | 2014-07-02 18:31:31 +0900 | [diff] [blame] | 21 | # Apache 2.4 uses mod_authz_host for access control now (instead of | 
|  | 22 | #  "Allow") | 
|  | 23 | <IfVersion < 2.4> | 
|  | 24 | Order allow,deny | 
|  | 25 | Allow from all | 
|  | 26 | </IfVersion> | 
|  | 27 | <IfVersion >= 2.4> | 
|  | 28 | Require all granted | 
|  | 29 | </IfVersion> | 
| Jesse Andrews | 8b564a8 | 2011-09-11 17:53:34 -0700 | [diff] [blame] | 30 | </Directory> | 
| George Peristerakis | e7b5136 | 2015-02-20 16:28:32 -0500 | [diff] [blame] | 31 | <IfVersion >= 2.4> | 
|  | 32 | ErrorLogFormat "%{cu}t %M" | 
|  | 33 | </IfVersion> | 
| Dean Troyer | 5218d45 | 2012-02-04 02:13:23 -0600 | [diff] [blame] | 34 | ErrorLog /var/log/%APACHE_NAME%/horizon_error.log | 
| Jesse Andrews | 8b564a8 | 2011-09-11 17:53:34 -0700 | [diff] [blame] | 35 | LogLevel warn | 
| Dean Troyer | 5218d45 | 2012-02-04 02:13:23 -0600 | [diff] [blame] | 36 | CustomLog /var/log/%APACHE_NAME%/horizon_access.log combined | 
| Jesse Andrews | 8b564a8 | 2011-09-11 17:53:34 -0700 | [diff] [blame] | 37 | </VirtualHost> | 
|  | 38 |  | 
| Dean Troyer | 5218d45 | 2012-02-04 02:13:23 -0600 | [diff] [blame] | 39 | WSGISocketPrefix /var/run/%APACHE_NAME% |