~celebdor/charms/trusty/neutron-agents-midonet/trunk

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/openstack/templates/openstack_https_frontend.conf

  • Committer: Antoni Segura Puimedon
  • Date: 2016-01-25 15:57:58 UTC
  • Revision ID: toni@midokura.com-20160125155758-ni7pxb7vryhgckpj
Sync dependencies

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% if endpoints -%}
2
 
{% for ext_port in ext_ports -%}
3
 
Listen {{ ext_port }}
4
 
{% endfor -%}
5
 
{% for address, endpoint, ext, int in endpoints -%}
6
 
<VirtualHost {{ address }}:{{ ext }}>
7
 
    ServerName {{ endpoint }}
8
 
    SSLEngine on
9
 
    SSLCertificateFile /etc/apache2/ssl/{{ namespace }}/cert_{{ endpoint }}
10
 
    SSLCertificateKeyFile /etc/apache2/ssl/{{ namespace }}/key_{{ endpoint }}
11
 
    ProxyPass / http://localhost:{{ int }}/
12
 
    ProxyPassReverse / http://localhost:{{ int }}/
13
 
    ProxyPreserveHost on
14
 
</VirtualHost>
15
 
{% endfor -%}
16
 
<Proxy *>
17
 
    Order deny,allow
18
 
    Allow from all
19
 
</Proxy>
20
 
<Location />
21
 
    Order allow,deny
22
 
    Allow from all
23
 
</Location>
24
 
{% endif -%}