~openstack-charmers-archive/charms/precise/glance/trunk

« back to all changes in this revision

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

  • Committer: James Page
  • Date: 2015-10-22 13:20:03 UTC
  • Revision ID: james.page@ubuntu.com-20151022132003-ktja6aexsi7ifjif
Tags: 15.10
15.10 Charm release

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