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