~corey.bryant/charms/trusty/neutron-api/db-stamp

« back to all changes in this revision

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

  • Committer: james.page at ubuntu
  • Date: 2014-10-01 21:05:24 UTC
  • mfrom: (39.3.25 ipv6)
  • Revision ID: james.page@ubuntu.com-20141001210524-z6uqyljzorphrhy6
[xianghui,dosaboy,r=james-page,t=gema] Add IPv6 support using prefer-ipv6 flag

Show diffs side-by-side

added added

removed removed

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