blob: 011abb95fc9b42792002af47f51af9f4721dddb9 [file] [log] [blame]
Sylvain Bauza70a62082016-12-20 15:34:29 +01001# NOTE(sbauza): This virtualhost is only here because some directives can
2# only be set by a virtualhost or server context, so that's why the port is not bound.
3# TODO(sbauza): Find a better way to identify a free port that is not corresponding to an existing
4# vhost.
5<VirtualHost *:8780>
Chris Dent4d601752016-07-12 19:34:09 +00006 WSGIDaemonProcess placement-api processes=%APIWORKERS% threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
7 WSGIProcessGroup placement-api
8 WSGIScriptAlias / %PUBLICWSGI%
9 WSGIApplicationGroup %{GLOBAL}
10 WSGIPassAuthorization On
11 <IfVersion >= 2.4>
12 ErrorLogFormat "%M"
13 </IfVersion>
14 ErrorLog /var/log/%APACHE_NAME%/placement-api.log
15 %SSLENGINE%
16 %SSLCERTFILE%
17 %SSLKEYFILE%
18</VirtualHost>
19
20Alias /placement %PUBLICWSGI%
21<Location /placement>
22 SetHandler wsgi-script
23 Options +ExecCGI
24 WSGIProcessGroup placement-api
25 WSGIApplicationGroup %{GLOBAL}
26 WSGIPassAuthorization On
27</Location>