commit fddc41c52bdc658fee75ad3f6351e2ae14b6f6f9 Author: Sebastian Hahn sebastian@torproject.org Date: Sun Oct 19 13:44:07 2014 +0200
Fix some <pre> on running-a-mirror --- docs/en/running-a-mirror.wml | 68 +++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 34 deletions(-)
diff --git a/docs/en/running-a-mirror.wml b/docs/en/running-a-mirror.wml index 371566b..ae2afb5 100644 --- a/docs/en/running-a-mirror.wml +++ b/docs/en/running-a-mirror.wml @@ -25,10 +25,10 @@ everything a mirror should share with the world: <br> <br> <tt> - <pre> - rsync -av --exclude 'dist' --delete rsync://rsync.torproject.org/website-mirror tor-mirror/ - rsync -av --delete rsync://rsync.torproject.org/dist-mirror tor-mirror/dist/ - </pre> +<pre> +rsync -av --exclude 'dist' --delete rsync://rsync.torproject.org/website-mirror tor-mirror/ +rsync -av --delete rsync://rsync.torproject.org/dist-mirror tor-mirror/dist/ +</pre> </tt>
<p> @@ -55,58 +55,58 @@ <p> An example cronjob to update a full mirror once every 6 hours may look like so: <tt> - <pre> - # m h dom mon dow command - 0 */6 * * * rsync -aq --delete rsync://rsync.torproject.org/website-mirror/ /var/www/mirrors/torproject.org - 5 */6 * * * rsync -aq --delete rsync://rsync.torproject.org/dist-mirror/ /var/www/mirrors/torproject.org/dist - </pre> +<pre> +# m h dom mon dow command +0 */6 * * * rsync -aq --delete rsync://rsync.torproject.org/website-mirror/ /var/www/mirrors/torproject.org +5 */6 * * * rsync -aq --delete rsync://rsync.torproject.org/dist-mirror/ /var/www/mirrors/torproject.org/dist +</pre> </tt> </p> <br/> For mirror operators that use Apache, we have created a sample virtual host configuration file to use: <tt> - <pre> - <VirtualHost 10.10.10.10:80> - ServerAdmin youremail@example.com<br/> - ServerName ServerNameHere<br/> +<pre> +<VirtualHost 10.10.10.10:80> + ServerAdmin youremail@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> +</VirtualHost> +</pre> </tt> <br/> For mirror operators that use nginx, we created a sample virtual host configuration file to use: <tt> - <pre> - server { - listen 10.10.10.10:80; - server_name your.example.com; +<pre> +server { + listen 10.10.10.10:80; + server_name your.example.com;
- root /var/www/mirrors/torproject.org; - index index.html.en; + root /var/www/mirrors/torproject.org; + index index.html.en;
- location / { - autoindex on; - } + location / { + autoindex on; } - </pre> +} +</pre> </tt> <br/> If you use nginx, please ensure the text/html line in <tt>/etc/nginx/mime.types</tt> matches: <tt> - <pre> - text/html en html htm shtml; - </pre> +<pre> +text/html en html htm shtml; +</pre> </tt> <br/><br> Please ensure that you keep your mirror updated (we suggest automating this
tor-commits@lists.torproject.org