| Jesse Andrews | 8b564a8 | 2011-09-11 17:53:34 -0700 | [diff] [blame] | 1 | <VirtualHost *:80> | 
| Akihiro Motoki | 41fe3eb | 2018-09-08 18:32:25 +0000 | [diff] [blame] | 2 | WSGIScriptAlias %WEBROOT% %HORIZON_DIR%/openstack_dashboard/wsgi.py | 
| 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/ | 
| David Lyle | 7b105c5 | 2015-07-27 17:14:32 -0600 | [diff] [blame] | 11 | Alias %WEBROOT%/media %HORIZON_DIR%/openstack_dashboard/static | 
|  | 12 | Alias %WEBROOT%/static %HORIZON_DIR%/static | 
|  | 13 |  | 
|  | 14 | RedirectMatch "^/$" "%WEBROOT%/" | 
| Jesse Andrews | 8b564a8 | 2011-09-11 17:53:34 -0700 | [diff] [blame] | 15 |  | 
|  | 16 | <Directory /> | 
|  | 17 | Options FollowSymLinks | 
|  | 18 | AllowOverride None | 
|  | 19 | </Directory> | 
|  | 20 |  | 
| Tres Henry | ca85b79 | 2011-10-28 14:00:21 -0700 | [diff] [blame] | 21 | <Directory %HORIZON_DIR%/> | 
| Jesse Andrews | 8b564a8 | 2011-09-11 17:53:34 -0700 | [diff] [blame] | 22 | Options Indexes FollowSymLinks MultiViews | 
|  | 23 | AllowOverride None | 
| Noboru Iwamatsu | b4495eb | 2014-07-02 18:31:31 +0900 | [diff] [blame] | 24 | # Apache 2.4 uses mod_authz_host for access control now (instead of | 
|  | 25 | #  "Allow") | 
|  | 26 | <IfVersion < 2.4> | 
|  | 27 | Order allow,deny | 
|  | 28 | Allow from all | 
|  | 29 | </IfVersion> | 
|  | 30 | <IfVersion >= 2.4> | 
|  | 31 | Require all granted | 
|  | 32 | </IfVersion> | 
| Jesse Andrews | 8b564a8 | 2011-09-11 17:53:34 -0700 | [diff] [blame] | 33 | </Directory> | 
| George Peristerakis | e7b5136 | 2015-02-20 16:28:32 -0500 | [diff] [blame] | 34 | <IfVersion >= 2.4> | 
|  | 35 | ErrorLogFormat "%{cu}t %M" | 
|  | 36 | </IfVersion> | 
| Dean Troyer | 5218d45 | 2012-02-04 02:13:23 -0600 | [diff] [blame] | 37 | ErrorLog /var/log/%APACHE_NAME%/horizon_error.log | 
| Jesse Andrews | 8b564a8 | 2011-09-11 17:53:34 -0700 | [diff] [blame] | 38 | LogLevel warn | 
| Dean Troyer | 5218d45 | 2012-02-04 02:13:23 -0600 | [diff] [blame] | 39 | CustomLog /var/log/%APACHE_NAME%/horizon_access.log combined | 
| Jesse Andrews | 8b564a8 | 2011-09-11 17:53:34 -0700 | [diff] [blame] | 40 | </VirtualHost> | 
|  | 41 |  | 
| Dean Troyer | 5218d45 | 2012-02-04 02:13:23 -0600 | [diff] [blame] | 42 | WSGISocketPrefix /var/run/%APACHE_NAME% |