blob: b89ef967767bc980efdd236312dc780a5accdaca [file] [log] [blame]
Chris Dent4d601752016-07-12 19:34:09 +00001Listen %PUBLICPORT%
2
3<VirtualHost *:%PUBLICPORT%>
4 WSGIDaemonProcess placement-api processes=%APIWORKERS% threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
5 WSGIProcessGroup placement-api
6 WSGIScriptAlias / %PUBLICWSGI%
7 WSGIApplicationGroup %{GLOBAL}
8 WSGIPassAuthorization On
9 <IfVersion >= 2.4>
10 ErrorLogFormat "%M"
11 </IfVersion>
12 ErrorLog /var/log/%APACHE_NAME%/placement-api.log
13 %SSLENGINE%
14 %SSLCERTFILE%
15 %SSLKEYFILE%
16</VirtualHost>
17
18Alias /placement %PUBLICWSGI%
19<Location /placement>
20 SetHandler wsgi-script
21 Options +ExecCGI
22 WSGIProcessGroup placement-api
23 WSGIApplicationGroup %{GLOBAL}
24 WSGIPassAuthorization On
25</Location>