~robert-ayres/charms/trusty/contrail-configuration/trunk

« back to all changes in this revision

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

  • Committer: Robert Ayres
  • Date: 2014-09-10 14:03:02 UTC
  • Revision ID: robert.ayres@canonical.com-20140910140302-bqu0wb61an4nhgfa
Initial charm

Show diffs side-by-side

added added

removed removed

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