1 |
<% |
2 |
# FIXME: add a reverse lookup for IPv6 adresses |
3 |
# allowed hosts are: valstar, ecosse, jonund |
4 |
buildsystem_nodes = "2a02:2178:2:7::3/64 2a02:2178:2:7::4/64 2a02:2178:2:7::5/64" |
5 |
%> |
6 |
|
7 |
<VirtualHost *:80> |
8 |
ServerName repository.<%= domain %> |
9 |
DocumentRoot <%= mirror_root %> |
10 |
Alias /distrib/infra_1/ "/distrib/bootstrap/distrib/infra_1/" |
11 |
Alias /mandriva/ "/distrib/mandriva/" |
12 |
Alias /mageiatools/ "/distrib/mageiatools/" |
13 |
|
14 |
<Directory <%= mirror_root %>> |
15 |
Order deny,allow |
16 |
Deny from all |
17 |
Allow from localhost, 127.0.0.1 |
18 |
Allow from <%= buildsystem_nodes %> |
19 |
Allow from .<%= domain %> |
20 |
Options Indexes FollowSymLinks |
21 |
</Directory> |
22 |
|
23 |
<Directory /distrib/bootstrap/distrib/infra_1> |
24 |
Header append Cache-Control "public, must-revalidate" |
25 |
Order deny,allow |
26 |
Allow from all |
27 |
Options Indexes FollowSymLinks |
28 |
</Directory> |
29 |
|
30 |
<Directory /distrib/mandriva> |
31 |
Order deny,allow |
32 |
Deny from all |
33 |
Allow from localhost, 127.0.0.1 |
34 |
Allow from <%= buildsystem_nodes %> |
35 |
Allow from .<%= domain %> |
36 |
Options Indexes FollowSymLinks |
37 |
</Directory> |
38 |
|
39 |
<Directory /distrib/mandriva/2010.1-mgaserv/> |
40 |
Order deny,allow |
41 |
Allow from all |
42 |
Options Indexes FollowSymLinks |
43 |
</Directory> |
44 |
|
45 |
<Directory /distrib/mageiatools> |
46 |
Order deny,allow |
47 |
Allow from all |
48 |
Options Indexes FollowSymLinks |
49 |
</Directory> |
50 |
</VirtualHost> |