aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates/vhost_repository.conf
blob: 50d42b3ba7b3eb6444e9fc40abc1f4b84a4fcedd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<%
# FIXME: add a reverse lookup for IPv6 adresses
# allowed hosts are: valstar, ecosse, jonund
buildsystem_nodes = "2a02:2178:2:7::3/64 2a02:2178:2:7::4/64 2a02:2178:2:7::5/64"
%>

<VirtualHost *:80>
        ServerName repository.<%= domain %>
        DocumentRoot <%= mirror_root %>
        Alias /distrib/infra_1/ "/distrib/bootstrap/distrib/infra_1/"
        Alias /mandriva/ "/distrib/mandriva/"
        Alias /mageiatools/ "/distrib/mageiatools/"

        <Directory  <%= mirror_root %>>
          Order deny,allow
          Deny from all
          Allow from localhost, 127.0.0.1
          Allow from <%= buildsystem_nodes %>
          Allow from .<%= domain %>
          Options Indexes FollowSymLinks
        </Directory>

        <Directory  /distrib/bootstrap/distrib/infra_1>
          Header append Cache-Control "public, must-revalidate"
          Order deny,allow
          Allow from all
          Options Indexes FollowSymLinks
        </Directory>

        <Directory  /distrib/mandriva>
          Order deny,allow
          Deny from all
          Allow from localhost, 127.0.0.1
          Allow from <%= buildsystem_nodes %>
          Allow from .<%= domain %>
          Options Indexes FollowSymLinks
        </Directory>
        
        <Directory  /distrib/mandriva/2010.1-mgaserv/>
          Order deny,allow
          Allow from all
          Options Indexes FollowSymLinks
        </Directory>

        <Directory  /distrib/mageiatools>
          Order deny,allow
          Allow from all
          Options Indexes FollowSymLinks
        </Directory>
</VirtualHost>