~corey.bryant/charms/trusty/keystone/python-six

« back to all changes in this revision

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

  • Committer: James Page
  • Date: 2014-03-27 10:54:38 UTC
  • mfrom: (55.1.22 keystone)
  • mto: (52.4.7 keystone)
  • mto: This revision was merged to the branch mainline in revision 60.
  • Revision ID: james.page@canonical.com-20140327105438-oid8czi9ud51iut1
Merge ssl-everywhere branch (may break stuff)

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 -%}