aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates/vhost_repository.conf
diff options
context:
space:
mode:
Diffstat (limited to 'modules/buildsystem/templates/vhost_repository.conf')
-rw-r--r--modules/buildsystem/templates/vhost_repository.conf14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/buildsystem/templates/vhost_repository.conf b/modules/buildsystem/templates/vhost_repository.conf
index e082ffca..3dbdfc46 100644
--- a/modules/buildsystem/templates/vhost_repository.conf
+++ b/modules/buildsystem/templates/vhost_repository.conf
@@ -9,7 +9,7 @@ distros = scope.lookupvar('buildsystem::var::distros::distros')
-%>
<VirtualHost *:80>
ServerName <%= scope.lookupvar('buildsystem::var::repository::hostname') %>
- DocumentRoot <%= mirror_root %>
+ DocumentRoot <%= @mirror_root %>
# Some simple API to check existence of SRPMs for QA
RewriteEngine On
@@ -36,35 +36,35 @@ distros = scope.lookupvar('buildsystem::var::distros::distros')
access_requires = [ 'all granted' ]
end
%>
- Alias /bootstrap/ "<%= bootstrap_reporoot %>/"
+ Alias /bootstrap/ "<%= @bootstrap_reporoot %>/"
<%-
distros.keys.sort.each{|distroname|
distro = distros[distroname]
if distro['no_mirror'] -%>
- Alias /<%= distribdir %>/<%= distroname %>/ "<%= bootstrap_reporoot %>/<%= distroname %>/"
+ Alias /<%= @distribdir %>/<%= @distroname %>/ "<%= @bootstrap_reporoot %>/<%= @distroname %>/"
<%-
end
}
-%>
- <Directory <%= bootstrap_reporoot %>>
+ <Directory <%= @bootstrap_reporoot %>>
Header append Cache-Control "public, must-revalidate"
<%-
for req in access_requires do
-%>
- Require <%= req %>
+ Require <%= @req %>
<%-
end
-%>
Options Indexes FollowSymLinks
</Directory>
- <Directory <%= mirror_root %>>
+ <Directory <%= @mirror_root %>>
Header append Cache-Control "public, must-revalidate"
<%-
for req in access_requires do
-%>
- Require <%= req %>
+ Require <%= @req %>
<%-
end
-%>