[or-cvs] r17606: {website} Add sample cronjob and a very basic Apache Vhost configurati (website/trunk/en)

ioerror at seul.org ioerror at seul.org
Fri Dec 12 02:57:17 UTC 2008


Author: ioerror
Date: 2008-12-11 21:57:16 -0500 (Thu, 11 Dec 2008)
New Revision: 17606

Modified:
   website/trunk/en/running-a-mirror.wml
Log:
Add sample cronjob and a very basic Apache Vhost configuration file.


Modified: website/trunk/en/running-a-mirror.wml
===================================================================
--- website/trunk/en/running-a-mirror.wml	2008-12-11 22:38:00 UTC (rev 17605)
+++ website/trunk/en/running-a-mirror.wml	2008-12-12 02:57:16 UTC (rev 17606)
@@ -24,12 +24,42 @@
 <tt>
 rsync -av --delete rsync://rsync.torproject.org/tor/dist tor-mirror-dist/
 </tt>
+<br /><br />
+<p>
+An example cronjob to update a full mirror once a day may look like so:
+<tt>
+<pre>
+# m h  dom mon dow   command
+1 4 * * * rsync -av --delete rsync://rsync.torproject.org/tor /var/www/mirrors/torproject.org/
+</pre>
+</tt>
+</p>
+<br/>
+For mirror operators that use Apache, we've created a sample virtual host
+configuration file to use:
+<tt>
+<pre>
+&lt;VirtualHost 1.2.3.4:80&gt;
+        ServerAdmin youremail at example.com
+        ServerName  1.2.3.4
+
+        DocumentRoot /var/www/mirrors/torproject.org
+
+        &lt;Directory /var/www/mirrors/torproject.org/&gt;
+                Options MultiViews
+                DirectoryIndex index
+                AllowOverride None
+        &lt;/Directory&gt;
+
+&lt;VirtualHost&gt;
+</pre>
+</tt>
 <br/> <br/>
 Please ensure that you keep your mirror updated (we suggest automating this
 task with something like '<tt>cron</tt>'). Our website, source code and
 binary releases change often. Tor users everywhere will thank you.
 </p>
-
+<br/>
 <p>
 If you are running a mirror, please email
 <a href="<page contact>">tor-webmaster</a> and we'll add it to the list.



More information about the tor-commits mailing list