Files
solum/devstack/files/apache-solum-api.template
zhurong 01b6907d36 Solum using apache WSGI when devstack install
This patch add the devstack wsgi install support for solum.

bp: https://blueprints.launchpad.net/solum/+spec/solum-api-under-wsgi
ref: https://github.com/openstack/heat/blob/master/devstack/files/apache-heat-api.template

Change-Id: I27e8eb63f2aeef42d1a11c8459d6b3a2f6aebdaf
Implements: blueprint solum-api-under-wsgi
2017-03-23 01:09:50 +00:00

26 lines
777 B
Plaintext

Listen %PUBLICPORT%
<VirtualHost *:%PUBLICPORT%>
WSGIDaemonProcess solum-api processes=%API_WORKERS% threads=10 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup solum-api
WSGIScriptAlias / %SOLUM_BIN_DIR%/solum-wsgi-api
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
AllowEncodedSlashes On
<IfVersion >= 2.4>
ErrorLogFormat "%{cu}t %M"
</IfVersion>
ErrorLog /var/log/%APACHE_NAME%/solum_api.log
CustomLog /var/log/%APACHE_NAME%/solum_api_access.log combined
<Directory %SOLUM_BIN_DIR%>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
</VirtualHost>