~wuwenbin2/onosfw/neutron-api-onos

« back to all changes in this revision

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

  • Committer: wuwenbin2
  • Date: 2015-12-31 03:27:06 UTC
  • Revision ID: git-v1:5ea6261efb13b069f3fb3fc63b2cfdac128f447f
neutron-api-onos

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