Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (36 sloc) 1.09 KB
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin ops@example.com
DocumentRoot {{ document_root }}
LogLevel error
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLProxyEngine on
SSLCertificateFile {{ ssl_certificate_path }}
SSLCertificateKeyFile {{ ssl_certificate_key_path }}
SSLCACertificateFile {{ ssl_ca_certificate_path }}
ProxyPreserveHost On
#ProxyAddHeaders On
RequestHeader set X-Forwarded-Proto 'https'
RequestHeader set Https 'on'
BalancerPersist On
<Proxy balancer://default>
{% for host in groups['app'] %}
BalancerMember http://{{ host }}:8080
{% endfor %}
</Proxy>
<Location /secure>
SSLVerifyClient require
SSLVerifyDepth 1
SSLRequireSSL
SSLRenegBufferSize 131072
ProxyPass balancer://default/
ProxyPassReverse balancer://default
</Location>
<Location />
ProxyPass balancer://default/
ProxyPassReverse balancer://default
</Location>
</VirtualHost>
</IfModule>