SSLProxyEngine on

{% if rewrite %}
RewriteEngine On
RewriteRule ^{{remotepath}}$ %{REQUEST_URI}/ [R=301]

{% endif %}
{% if header_scheme %}
RequestHeader set X-Forwarded-Scheme https early
RequestHeader set X-Scheme https early
RequestHeader set X-Forwarded-Proto https early

{% endif %}
{% for path in ('api_2', 'api_3') %}
ProxyPass /{{path}} https://copr.fedorainfracloud.org/{{path}}
ProxyPassReverse /{{path}} https://copr.fedorainfracloud.org/{{path}}
{% endfor %}
