blob: 98d02e168eb547ef880b603c752f551dbe0f36b0 [file] [log] [blame]
Jesse Andrews8b564a82011-09-11 17:53:34 -07001<VirtualHost *:80>
Akihiro Motoki41fe3eb2018-09-08 18:32:25 +00002 WSGIScriptAlias %WEBROOT% %HORIZON_DIR%/openstack_dashboard/wsgi.py
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/
David Lyle7b105c52015-07-27 17:14:32 -060011 Alias %WEBROOT%/media %HORIZON_DIR%/openstack_dashboard/static
12 Alias %WEBROOT%/static %HORIZON_DIR%/static
Ivan Anfimova0938e62025-03-01 20:46:26 +000013 Alias /static %HORIZON_DIR%/static
David Lyle7b105c52015-07-27 17:14:32 -060014
15 RedirectMatch "^/$" "%WEBROOT%/"
Jesse Andrews8b564a82011-09-11 17:53:34 -070016
17 <Directory />
18 Options FollowSymLinks
19 AllowOverride None
20 </Directory>
21
Tres Henryca85b792011-10-28 14:00:21 -070022 <Directory %HORIZON_DIR%/>
Jesse Andrews8b564a82011-09-11 17:53:34 -070023 Options Indexes FollowSymLinks MultiViews
24 AllowOverride None
Noboru Iwamatsub4495eb2014-07-02 18:31:31 +090025 # 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 Andrews8b564a82011-09-11 17:53:34 -070034 </Directory>
George Peristerakise7b51362015-02-20 16:28:32 -050035 <IfVersion >= 2.4>
36 ErrorLogFormat "%{cu}t %M"
37 </IfVersion>
Dean Troyer5218d452012-02-04 02:13:23 -060038 ErrorLog /var/log/%APACHE_NAME%/horizon_error.log
Jesse Andrews8b564a82011-09-11 17:53:34 -070039 LogLevel warn
Dean Troyer5218d452012-02-04 02:13:23 -060040 CustomLog /var/log/%APACHE_NAME%/horizon_access.log combined
Jesse Andrews8b564a82011-09-11 17:53:34 -070041</VirtualHost>
42
Clark Boylana40f9cb2018-04-04 14:02:30 -070043%WSGIPYTHONHOME%
Dean Troyer5218d452012-02-04 02:13:23 -060044WSGISocketPrefix /var/run/%APACHE_NAME%