70a6208464
The placement API configuration was binding a specific port *and* was supporting to be called by the default HTTPd ports using a Location directive. Given that the corresponding service catalog entry for the placement service type doesn't mention the specific application port but is rather using the default port 80, we can remove that specific port and just use the default config. Note that we still need to use a VirtualHost directive for the specific placement config because ErrorLog is only scoped for either server or virtualhost but can't be set for a Location (or a Directory) context. Change-Id: I9a26dcff4b879cf9e82e43a3d1aca2e4fe6aa3e6
28 lines
938 B
Plaintext
28 lines
938 B
Plaintext
# NOTE(sbauza): This virtualhost is only here because some directives can
|
|
# only be set by a virtualhost or server context, so that's why the port is not bound.
|
|
# TODO(sbauza): Find a better way to identify a free port that is not corresponding to an existing
|
|
# vhost.
|
|
<VirtualHost *:8780>
|
|
WSGIDaemonProcess placement-api processes=%APIWORKERS% threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
|
|
WSGIProcessGroup placement-api
|
|
WSGIScriptAlias / %PUBLICWSGI%
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIPassAuthorization On
|
|
<IfVersion >= 2.4>
|
|
ErrorLogFormat "%M"
|
|
</IfVersion>
|
|
ErrorLog /var/log/%APACHE_NAME%/placement-api.log
|
|
%SSLENGINE%
|
|
%SSLCERTFILE%
|
|
%SSLKEYFILE%
|
|
</VirtualHost>
|
|
|
|
Alias /placement %PUBLICWSGI%
|
|
<Location /placement>
|
|
SetHandler wsgi-script
|
|
Options +ExecCGI
|
|
WSGIProcessGroup placement-api
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIPassAuthorization On
|
|
</Location>
|