<%- mirror_root = scope.lookupvar('buildsystem::var::repository::mirror_root') mirror_reporoot = scope.lookupvar('buildsystem::var::repository::mirror_reporoot') bootstrap_reporoot = scope.lookupvar('buildsystem::var::repository::bootstrap_reporoot') distribdir = scope.lookupvar('buildsystem::var::repository::distribdir') distros = scope.lookupvar('buildsystem::var::distros::distros') -%> ServerName <%= scope.lookupvar('buildsystem::var::repository::hostname') %> DocumentRoot <%= mirror_root %> # Some simple API to check existence of SRPMs for QA RewriteEngine On RewriteCond /distrib/bootstrap/distrib/$2/SRPMS/$3/$1s_testing/$4.src.rpm -f RewriteRule ^/qa/checksrpm/(update|backport)/([1-9][0-9]*)/([a-z_]+)/([^/]+)$ http://repository.mageia.org/qa/checksrpm/found [L,R=302] RewriteRule ^/qa/checksrpm/ - [L,G] # Temporary hack Alias /distrib/cauldron/armv5tl/ "/distrib/bootstrap/distrib/cauldron/armv5tl/" <%- distros.keys.sort.each{|distroname| distro = distros[distroname] if distro['repo_allow_from_ips'] != nil || distro['repo_allow_from_domains'] != nil then access_requires = [ 'all denied' ] if distro['repo_allow_from_ips'] != nil then for allow in distro['repo_allow_from_ips'] do access_requires << 'ip ' + allow end end if distro['repo_allow_from_domains'] != nil then for allow in distro['repo_allow_from_domains'] do access_requires << 'host ' + allow end end else access_requires = [ 'all granted' ] end %> Alias /bootstrap/<%= distroname %>/ "<%= bootstrap_reporoot %>/<%= distroname %>/" <%- if distro['no_mirror'] -%> Alias /<%= distribdir %>/<%= distroname %>/ "<%= bootstrap_reporoot %>/<%= distroname %>/" <%- end -%> /<%= distroname %>> Header append Cache-Control "public, must-revalidate" <%- for req in access_requires do -%> Require <%= req %> <%- end -%> Options Indexes FollowSymLinks /<%= distroname %>> Header append Cache-Control "public, must-revalidate" <%- for req in access_requires do -%> Require <%= req %> <%- end -%> Options Indexes FollowSymLinks <%- } -%>