~narindergupta/opnfv/openvswitch-odl

« back to all changes in this revision

Viewing changes to templates/openstack_https_frontend.conf

  • Committer: Narinder Gupta (for canonical email id)
  • Date: 2017-02-08 18:03:07 UTC
  • Revision ID: narinder.gupta@canonical.com-20170208180307-06nn5a4h258zfmr1
inital version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% if options.endpoints -%}
 
2
{% for ext_port in options.ext_ports -%}
 
3
Listen {{ ext_port }}
 
4
{% endfor -%}
 
5
{% for address, endpoint, ext, int in options.endpoints -%}
 
6
<VirtualHost {{ address }}:{{ ext }}>
 
7
    ServerName {{ endpoint }}
 
8
    SSLEngine on
 
9
    SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2
 
10
    SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!EXP:!LOW:!MEDIUM
 
11
    SSLCertificateFile /etc/apache2/ssl/{{ options.service_name }}/cert_{{ endpoint }}
 
12
    SSLCertificateKeyFile /etc/apache2/ssl/{{ options.service_name }}/key_{{ endpoint }}
 
13
    ProxyPass / http://localhost:{{ int }}/
 
14
    ProxyPassReverse / http://localhost:{{ int }}/
 
15
    ProxyPreserveHost on
 
16
</VirtualHost>
 
17
{% endfor -%}
 
18
<Proxy *>
 
19
    Order deny,allow
 
20
    Allow from all
 
21
</Proxy>
 
22
<Location />
 
23
    Order allow,deny
 
24
    Allow from all
 
25
</Location>
 
26
{% endif -%}