4050a40826
Change-Id: Iced6305e239114371518831a1e2c450e630152b4
27 lines
773 B
Plaintext
27 lines
773 B
Plaintext
{% if endpoints -%}
|
|
{% for ext_port in ext_ports -%}
|
|
Listen {{ ext_port }}
|
|
{% endfor -%}
|
|
{% for address, endpoint, ext, int in endpoints -%}
|
|
<VirtualHost {{ address }}:{{ ext }}>
|
|
ServerName {{ endpoint }}
|
|
SSLEngine on
|
|
SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2
|
|
SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!EXP:!LOW:!MEDIUM
|
|
SSLCertificateFile /etc/apache2/ssl/{{ namespace }}/cert_{{ endpoint }}
|
|
SSLCertificateKeyFile /etc/apache2/ssl/{{ namespace }}/key_{{ endpoint }}
|
|
ProxyPass / http://localhost:{{ int }}/
|
|
ProxyPassReverse / http://localhost:{{ int }}/
|
|
ProxyPreserveHost on
|
|
</VirtualHost>
|
|
{% endfor -%}
|
|
<Proxy *>
|
|
Order deny,allow
|
|
Allow from all
|
|
</Proxy>
|
|
<Location />
|
|
Order allow,deny
|
|
Allow from all
|
|
</Location>
|
|
{% endif -%}
|