| Sylvain Bauza | 70a6208 | 2016-12-20 15:34:29 +0100 | [diff] [blame] | 1 | # 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 Dent | 4d60175 | 2016-07-12 19:34:09 +0000 | [diff] [blame] | 6 |     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 |  | 
 | 20 | Alias /placement %PUBLICWSGI% | 
 | 21 | <Location /placement> | 
 | 22 |     SetHandler wsgi-script | 
 | 23 |     Options +ExecCGI | 
 | 24 |     WSGIProcessGroup placement-api | 
 | 25 |     WSGIApplicationGroup %{GLOBAL} | 
 | 26 |     WSGIPassAuthorization On | 
 | 27 | </Location> |