<Location /mirrorlist>
RequestHeader set CP-Location /mirrormanager
</Location>

# static files
<Directory /srv/web/mirrors.fedoraproject.org>
    Options Indexes FollowSymLinks
    AllowOverride None
    <IfModule mod_authz_core.c>
        # Apache 2.4
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
        # Apache 2.2
        Order deny,allow
        Allow from all
    </IfModule>
</Directory>

RewriteEngine On
# BEGIN hack for misconfigured Amazon EC2 clients	
RewriteCond %{QUERY_STRING} repo=epel-5&arch=\$basea\$
RewriteRule ^/mirrorlist - [F]
# END hack

RewriteRule ^/static/(.*) {{proxyurl}}/static/$1 [P,L]
RewriteRule ^/publiclist(.*) {{proxyurl}}/publiclist$1 [P,L]
RewriteRule ^/mirrorlist(.*) {{proxyurl}}/mirrorlist$1 [P,L]
RewriteRule ^/metalink(.*) {{proxyurl}}/metalink$1 [P,L]
RewriteRule ^/$ /publiclist/ [R,L]

ProxyPassReverse /static {{proxyurl}}/static
ProxyPassReverse /publiclist {{proxyurl}}/publiclist
ProxyPassReverse /mirrorlist {{proxyurl}}/mirrorlist
ProxyPassReverse /metalink {{proxyurl}}/metalink
