Add sample cronjob and a very basic Apache Vhost configuration file.
Jacob Appelbaum

Jacob Appelbaum commited on 2008-12-12 03:57:16
Zeige 1 geänderte Dateien mit 31 Einfügungen und 1 Löschungen.

... ...
@@ -25,11 +25,41 @@ download everything a dist mirror should share with the world:
25 25
 rsync -av --delete rsync://rsync.torproject.org/tor/dist tor-mirror-dist/
26 26
 </tt>
27 27
 <br /><br />
28
+<p>
29
+An example cronjob to update a full mirror once a day may look like so:
30
+<tt>
31
+<pre>
32
+# m h  dom mon dow   command
33
+1 4 * * * rsync -av --delete rsync://rsync.torproject.org/tor /var/www/mirrors/torproject.org/
34
+</pre>
35
+</tt>
36
+</p>
37
+<br/>
38
+For mirror operators that use Apache, we've created a sample virtual host
39
+configuration file to use:
40
+<tt>
41
+<pre>
42
+&lt;VirtualHost 1.2.3.4:80&gt;
43
+        ServerAdmin youremail@example.com
44
+        ServerName  1.2.3.4
45
+
46
+        DocumentRoot /var/www/mirrors/torproject.org
47
+
48
+        &lt;Directory /var/www/mirrors/torproject.org/&gt;
49
+                Options MultiViews
50
+                DirectoryIndex index
51
+                AllowOverride None
52
+        &lt;/Directory&gt;
53
+
54
+&lt;VirtualHost&gt;
55
+</pre>
56
+</tt>
57
+<br/> <br/>
28 58
 Please ensure that you keep your mirror updated (we suggest automating this
29 59
 task with something like '<tt>cron</tt>'). Our website, source code and
30 60
 binary releases change often. Tor users everywhere will thank you.
31 61
 </p>
32
-
62
+<br/>
33 63
 <p>
34 64
 If you are running a mirror, please email
35 65
 <a href="<page contact>">tor-webmaster</a> and we'll add it to the list.
36 66