Tweak running-mirrors layout some more

This commit is contained in:
Sebastian Hahn 2014-10-19 14:44:45 +02:00
parent fddc41c52b
commit 2038af2c20

View File

@ -23,7 +23,7 @@
<p>
If you would like to run a mirror, it's as easy as these commands to download
everything a mirror should share with the world:
<br> <br>
</p>
<tt>
<pre>
rsync -av --exclude 'dist' --delete rsync://rsync.torproject.org/website-mirror tor-mirror/
@ -54,6 +54,7 @@ rsync -av --delete rsync://rsync.torproject.org/dist-mirror tor-mirror/dist/
<br><br>
<p>
An example cronjob to update a full mirror once every 6 hours may look like so:
</p>
<tt>
<pre>
# m h dom mon dow command
@ -61,30 +62,31 @@ rsync -av --delete rsync://rsync.torproject.org/dist-mirror tor-mirror/dist/
5 */6 * * * rsync -aq --delete rsync://rsync.torproject.org/dist-mirror/ /var/www/mirrors/torproject.org/dist
</pre>
</tt>
</p>
<br/>
<p>
For mirror operators that use Apache, we have created a sample virtual host
configuration file to use:
</p>
<tt>
<pre>
&lt;VirtualHost 10.10.10.10:80&gt;
ServerAdmin youremail@example.com<br/>
ServerName ServerNameHere<br/>
ServerAdmin youremail@example.com<br/>
ServerName ServerNameHere<br/>
DocumentRoot /var/www/mirrors/torproject.org<br/>
DocumentRoot /var/www/mirrors/torproject.org<br/>
&lt;Directory /var/www/mirrors/torproject.org/&gt;<br/>
Options MultiViews Indexes<br/>
DirectoryIndex index<br/>
AllowOverride None<br/>
&lt;/Directory&gt;<br/>
&lt;Directory /var/www/mirrors/torproject.org/&gt;<br/>
Options MultiViews Indexes<br/>
DirectoryIndex index<br/>
AllowOverride None<br/>
&lt;/Directory&gt;<br/>
&lt;/VirtualHost&gt;
</pre>
</tt>
<br/>
<p>
For mirror operators that use nginx, we created a sample virtual host
configuration file to use:
</p>
<tt>
<pre>
server {
@ -100,9 +102,10 @@ server {
}
</pre>
</tt>
<br/>
<p>
If you use nginx, please ensure the text/html line in
<tt>/etc/nginx/mime.types</tt> matches:
</p>
<tt>
<pre>
text/html en html htm shtml;