0f415270d7109585bee13116c67c6d1ca1442e45
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

1) ## translation metadata
Roger Dingledine looks like we never set the...

Roger Dingledine authored 13 years ago

2) # Revision: $Revision$
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

3) # Translation-Priority: 4-optional
4) 
5) #include "head.wmi" TITLE="Tor: Running a Mirror" CHARSET="UTF-8"
6) <div id="content" class="clearfix">
7)   <div id="breadcrumbs">
Andrew Lewman change all of the breadcrum...

Andrew Lewman authored 13 years ago

8)     <a href="<page index>">Home &raquo; </a>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

9)     <a href="<page docs/documentation>">Documentation &raquo; </a>
10)     <a href="<page docs/running-a-mirror>">Running a Mirror</a>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

11)   </div>
12)   <div id="maincol">
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

13)     <h1>Tor: Running a Mirror</h1>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

14)     <hr>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

15) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

16)     <p>Thank you for wanting to mirror the Tor website.  All of
17)     our mirrors are publicly listed on <a href="<page getinvolved/mirrors>">our mirrors
18)     page</a>.  We've included some sample commands and configuration below
19)     to make the initial setup and ongoing maintenance a minimal effort.
Sebastian Hahn Update mirror diskspace inf...

Sebastian Hahn authored 9 years ago

20)     The Tor website and distribution directory currently require roughly 9 GB of
21)     disk space, but this number can fluctuate. Expect space requirements
22)     of up to 15 GB.</p>
Andrew Lewman add two anchors for mirror...

Andrew Lewman authored 10 years ago

23)     <h2><a class="anchor" href="#sysconfig">Configuring your System</a></h2>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

24)     <p>
Sebastian Hahn Update mirror instructions

Sebastian Hahn authored 9 years ago

25)     If you would like to run a mirror, it's as easy as these commands to download
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

26)     everything a mirror should share with the world:
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

27)     </p>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

28)     <tt>
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

29) <pre>
Sebastian Hahn Clarify mirroring instructi...

Sebastian Hahn authored 9 years ago

30) rsync -aq --exclude dist --delete rsync://rsync.torproject.org/website-mirror/ /var/www/mirrors/torproject.org
31) rsync -aq --delete rsync://rsync.torproject.org/dist-mirror/ /var/www/mirrors/torproject.org/dist
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

32) </pre>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

33)     </tt>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

34) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

35)     <p>
36)     In order to assure we have reliable and up to date mirrors,
37)     please ensure your mirror does at least the following:<br/><br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

38) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

39)     Updates <b>no less</b> than every six hours, but no more frequent than every
40)     hour.<br/><br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

41) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

42)     Allows "Directory Index / Indexes" (Index viewing) of the /dist
43)     directory.<br/><br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

44) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

45)     Have a valid contact email for administrative communications should your
46)     server have issues.<br/><br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

47) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

48)     It is highly recommended for all mirror operators to subscribe to <A
jon@svn.torproject.org update to reflect new maili...

jon@svn.torproject.org authored 13 years ago

49)     href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-mirrors">tor-mirrors mailing
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

50)     list</A> where all mirror listing modification requests should go (ADD,
51)     CHANGE, DELETE, any other requests/notifications).  Also, any technical
52)     assistance in setting up your mirror may be found here as well.<br/><br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

53) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

54)     </p>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

55)     <br><br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

56)     <p>
57)     An example cronjob to update a full mirror once every 6 hours may look like so:
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

58)     </p>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

59)     <tt>
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

60) <pre>
61) # m h  dom mon dow   command
Roger Dingledine remove a couple of distract...

Roger Dingledine authored 9 years ago

62) 0 */6 * * * rsync -aq --exclude dist --delete rsync://rsync.torproject.org/website-mirror/ /var/www/mirrors/torproject.org
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

63) 5 */6 * * * rsync -aq --delete rsync://rsync.torproject.org/dist-mirror/ /var/www/mirrors/torproject.org/dist
64) </pre>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

65)     </tt>
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

66)     <p>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

67)     For mirror operators that use Apache, we have created a sample virtual host
68)     configuration file to use:
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

69)     </p>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

70)     <tt>
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

71) <pre>
72) &lt;VirtualHost 10.10.10.10:80&gt;
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

73)     ServerAdmin youremail@example.com<br/>
74)     ServerName  ServerNameHere<br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

75) 
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

76)     DocumentRoot /var/www/mirrors/torproject.org<br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

77) 
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

78)     &lt;Directory /var/www/mirrors/torproject.org/&gt;<br/>
Roger Dingledine apparently apache cannot ha...

Roger Dingledine authored 9 years ago

79)         # Be sure to enable the autoindex and negotiation modules<br/>
80)         Options MultiViews Indexes<br/>
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

81)         DirectoryIndex index<br/>
82)         AllowOverride None<br/>
83)     &lt;/Directory&gt;<br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

84) 
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

85) &lt;/VirtualHost&gt;
86) </pre>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

87)     </tt>
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

88)     <p>
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

89)     For mirror operators that use nginx, we created a sample virtual host
90)     configuration file to use:
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

91)     </p>
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

92)     <tt>
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

93) <pre>
94) server {
95)     listen 10.10.10.10:80;
96)     server_name your.example.com;
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

97) 
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

98)     root /var/www/mirrors/torproject.org;
99)     index index.html.en;
Andrew Lewman fix up the nginx directions...

Andrew Lewman authored 11 years ago

100) 
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

101)     location  / {
102)         autoindex on;
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

103)     }
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

104) }
105) </pre>
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

106)     </tt>
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

107)     <p>
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

108)     If you use nginx, please ensure the text/html line in
Andrew Lewman ticket 8757

Andrew Lewman authored 11 years ago

109)     <tt>/etc/nginx/mime.types</tt> matches:
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

110)     </p>
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

111)     <tt>
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

112) <pre>
113) text/html                             en html htm shtml;
114) </pre>
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

115)     </tt>
116)     <br/><br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

117)     Please ensure that you keep your mirror updated (we suggest automating this
118)     task with something like '<tt>cron</tt>'). Our website, source code and
119)     binary releases change often. An update frequency of six hours is recommended.  Tor users everywhere will thank you.
120)     </p>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

121)     <br/>
Andrew Lewman add two anchors for mirror...

Andrew Lewman authored 10 years ago

122)     <h2><a class="anchor" href="#mirrorops">Joining the mirror community</a></h2>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

123)     <p>
Robert Ransom Update mailing list subscri...

Robert Ransom authored 13 years ago

124)     If you are running a mirror, please subscribe to the <A
125)     href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-mirrors">tor-mirrors
Andrew Lewman update how to add your mirror.

Andrew Lewman authored 10 years ago

126)     mailing list</A>, and introduce yourself there. Help for mirror
127)     support and configuration issues may also be found on the list.
128)     </p>
Andrew Lewman add two anchors for mirror...

Andrew Lewman authored 10 years ago

129) 
Andrew Lewman update how to add your mirror.

Andrew Lewman authored 10 years ago

130)     <p>
131)     In order to add your mirror, please send a
132)     single, comma delimited line of text based on <a
133)     href="https://svn.torproject.org/svn/website/trunk/include/tor-mirrors.csv">this
134)     file</a> to the mirrors list. Your mirror will then be added manually
135)     if it passes availability testing and your provided information is
Andrew Lewman add more hints about runnin...

Andrew Lewman authored 10 years ago

136)     confirmed. Some general pointers on mirrors are:
Roger Dingledine remove a couple of distract...

Roger Dingledine authored 9 years ago

137)     <ol><li> Try not to run your mirror behind a content delivery network
138)     (such as Akamai, Cloudflare, Fastly, etc) as most of them block
Andrew Lewman add more hints about runnin...

Andrew Lewman authored 10 years ago

139)     access from countries where the mirror is needed the most.</li>
140)     <li> Try not to redirect http to https. Many places in the world
Andrew Lewman add two anchors for mirror...

Andrew Lewman authored 10 years ago

141)     cannot use https due to local or national firewalls.</li>
Andrew Lewman add more hints about runnin...

Andrew Lewman authored 10 years ago

142)     </ol>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

143)     </p>
144)   </div>
145)   <!-- END MAINCOL -->
146)   <div id = "sidecol">
147) #include "side.wmi"
148) #include "info.wmi"
149)   </div>
150)   <!-- END SIDECOL -->
151) </div>
152) <!-- END CONTENT -->