
The keystone charm runs the keystone API under apache2 for liberty and above. This patch enables the keystone API to run under apache2 when deployed from source for liberty and above. Change-Id: I5eccf38aad9668248f4f94523d61f7bd40ed5c30
59 lines
1.8 KiB
Plaintext
59 lines
1.8 KiB
Plaintext
# Configuration file maintained by Juju. Local changes may be overwritten.
|
|
|
|
Listen {{ admin_port }}
|
|
Listen {{ public_port }}
|
|
|
|
<VirtualHost *:{{ public_port }}>
|
|
WSGIDaemonProcess keystone-public processes={{ public_processes }} threads={{ public_threads }} user=keystone group=keystone \
|
|
{% if python_path -%}
|
|
python-path={{ python_path }} \
|
|
{% endif -%}
|
|
display-name=%{GROUP}
|
|
WSGIProcessGroup keystone-public
|
|
WSGIScriptAlias / {{ usr_bin }}/keystone-wsgi-public
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIPassAuthorization On
|
|
<IfVersion >= 2.4>
|
|
ErrorLogFormat "%{cu}t %M"
|
|
</IfVersion>
|
|
ErrorLog /var/log/apache2/keystone.log
|
|
CustomLog /var/log/apache2/keystone_access.log combined
|
|
|
|
<Directory {{ usr_bin }}>
|
|
<IfVersion >= 2.4>
|
|
Require all granted
|
|
</IfVersion>
|
|
<IfVersion < 2.4>
|
|
Order allow,deny
|
|
Allow from all
|
|
</IfVersion>
|
|
</Directory>
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:{{ admin_port }}>
|
|
WSGIDaemonProcess keystone-admin processes={{ admin_processes }} threads={{ admin_threads }} user=keystone group=keystone \
|
|
{% if python_path -%}
|
|
python-path={{ python_path }} \
|
|
{% endif -%}
|
|
display-name=%{GROUP}
|
|
WSGIProcessGroup keystone-admin
|
|
WSGIScriptAlias / {{ usr_bin }}/keystone-wsgi-admin
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIPassAuthorization On
|
|
<IfVersion >= 2.4>
|
|
ErrorLogFormat "%{cu}t %M"
|
|
</IfVersion>
|
|
ErrorLog /var/log/apache2/keystone.log
|
|
CustomLog /var/log/apache2/keystone_access.log combined
|
|
|
|
<Directory {{ usr_bin }}>
|
|
<IfVersion >= 2.4>
|
|
Require all granted
|
|
</IfVersion>
|
|
<IfVersion < 2.4>
|
|
Order allow,deny
|
|
Allow from all
|
|
</IfVersion>
|
|
</Directory>
|
|
</VirtualHost>
|