2016-03-26 14:12:58 -03:00
|
|
|
{% set keystone_log_dir = '/var/log/kolla/keystone' %}
|
2019-03-13 21:25:51 +08:00
|
|
|
{% if keystone_install_type == 'binary' %}
|
2019-08-12 14:45:43 +08:00
|
|
|
{% set python_path = '/usr/lib/python3/dist-packages' if kolla_base_distro in ['debian', 'ubuntu'] else '/usr/lib/python2.7/site-packages' %}
|
2019-03-13 21:25:51 +08:00
|
|
|
{% else %}
|
2019-08-12 14:45:43 +08:00
|
|
|
{% set python_path = '/var/lib/kolla/venv/lib/python' + distro_python_version + '/site-packages' %}
|
2019-03-13 21:25:51 +08:00
|
|
|
{% endif %}
|
2019-01-04 14:33:46 +07:00
|
|
|
{% set binary_path = '/usr/bin' if keystone_install_type == 'binary' else '/var/lib/kolla/venv/bin' %}
|
2019-09-11 20:47:00 +02:00
|
|
|
Listen {{ api_interface_address | put_address_in_context('url') }}:{{ keystone_public_listen_port }}
|
|
|
|
Listen {{ api_interface_address | put_address_in_context('url') }}:{{ keystone_admin_listen_port }}
|
2015-07-02 13:09:58 +00:00
|
|
|
|
2018-03-14 16:57:30 +08:00
|
|
|
ServerSignature Off
|
|
|
|
ServerTokens Prod
|
2017-07-19 10:52:41 +08:00
|
|
|
TraceEnable off
|
|
|
|
|
2019-12-04 11:39:59 +01:00
|
|
|
ErrorLog "{{ keystone_log_dir }}/apache-error.log"
|
|
|
|
<IfModule log_config_module>
|
|
|
|
CustomLog "{{ keystone_log_dir }}/apache-access.log" common
|
|
|
|
</IfModule>
|
|
|
|
|
2019-10-24 09:29:36 +02:00
|
|
|
{% if keystone_logging_debug | bool %}
|
|
|
|
LogLevel info
|
|
|
|
{% endif %}
|
|
|
|
|
2018-03-19 16:51:37 +08:00
|
|
|
<Directory "{{ binary_path }}">
|
|
|
|
<FilesMatch "^keystone-wsgi-(public|admin)$">
|
|
|
|
AllowOverride None
|
|
|
|
Options None
|
|
|
|
Require all granted
|
|
|
|
</FilesMatch>
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
|
2018-12-18 12:45:54 -05:00
|
|
|
<VirtualHost *:{{ keystone_public_listen_port }}>
|
2016-10-10 14:05:34 +02:00
|
|
|
WSGIDaemonProcess keystone-public processes={{ openstack_service_workers }} threads=1 user=keystone group=keystone display-name=%{GROUP} python-path={{ python_path }}
|
2015-07-02 13:09:58 +00:00
|
|
|
WSGIProcessGroup keystone-public
|
2018-03-19 16:51:37 +08:00
|
|
|
WSGIScriptAlias / {{ binary_path }}/keystone-wsgi-public
|
2015-07-02 13:09:58 +00:00
|
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
|
|
WSGIPassAuthorization On
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
ErrorLogFormat "%{cu}t %M"
|
|
|
|
</IfVersion>
|
2016-03-26 14:12:58 -03:00
|
|
|
ErrorLog "{{ keystone_log_dir }}/keystone-apache-public-error.log"
|
2016-02-24 09:00:09 -05:00
|
|
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
|
2016-03-26 14:12:58 -03:00
|
|
|
CustomLog "{{ keystone_log_dir }}/keystone-apache-public-access.log" logformat
|
2015-07-02 13:09:58 +00:00
|
|
|
</VirtualHost>
|
|
|
|
|
2018-12-18 12:45:54 -05:00
|
|
|
<VirtualHost *:{{ keystone_admin_listen_port }}>
|
2016-10-10 14:05:34 +02:00
|
|
|
WSGIDaemonProcess keystone-admin processes={{ openstack_service_workers }} threads=1 user=keystone group=keystone display-name=%{GROUP} python-path={{ python_path }}
|
2015-07-02 13:09:58 +00:00
|
|
|
WSGIProcessGroup keystone-admin
|
2018-03-19 16:51:37 +08:00
|
|
|
WSGIScriptAlias / {{ binary_path }}/keystone-wsgi-admin
|
2015-07-02 13:09:58 +00:00
|
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
|
|
WSGIPassAuthorization On
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
ErrorLogFormat "%{cu}t %M"
|
|
|
|
</IfVersion>
|
2016-03-26 14:12:58 -03:00
|
|
|
ErrorLog "{{ keystone_log_dir }}/keystone-apache-admin-error.log"
|
2016-02-24 09:00:09 -05:00
|
|
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
|
2016-03-26 14:12:58 -03:00
|
|
|
CustomLog "{{ keystone_log_dir }}/keystone-apache-admin-access.log" logformat
|
2015-07-02 13:09:58 +00:00
|
|
|
</VirtualHost>
|