[tor-commits] [webwml/staging] Tweak running-mirrors layout some more
sebastian at torproject.org
sebastian at torproject.org
Sun Oct 19 12:45:27 UTC 2014
commit 2038af2c2083b2ff9cea5cf6e775d4f70929a78c
Author: Sebastian Hahn <sebastian at torproject.org>
Date: Sun Oct 19 14:44:45 2014 +0200
Tweak running-mirrors layout some more
---
docs/en/running-a-mirror.wml | 29 ++++++++++++++++-------------
1 file changed, 16 insertions(+), 13 deletions(-)
diff --git a/docs/en/running-a-mirror.wml b/docs/en/running-a-mirror.wml
index ae2afb5..cf3bbc9 100644
--- a/docs/en/running-a-mirror.wml
+++ b/docs/en/running-a-mirror.wml
@@ -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>
<VirtualHost 10.10.10.10:80>
- ServerAdmin youremail at example.com<br/>
- ServerName ServerNameHere<br/>
+ ServerAdmin youremail at example.com<br/>
+ ServerName ServerNameHere<br/>
- DocumentRoot /var/www/mirrors/torproject.org<br/>
+ DocumentRoot /var/www/mirrors/torproject.org<br/>
- <Directory /var/www/mirrors/torproject.org/><br/>
- Options MultiViews Indexes<br/>
- DirectoryIndex index<br/>
- AllowOverride None<br/>
- </Directory><br/>
+ <Directory /var/www/mirrors/torproject.org/><br/>
+ Options MultiViews Indexes<br/>
+ DirectoryIndex index<br/>
+ AllowOverride None<br/>
+ </Directory><br/>
</VirtualHost>
</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;
More information about the tor-commits
mailing list