[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] r25332: {website} thanks to patrick, we have an nginx sample mirror config. (website/trunk/docs/en)
Author: phobos
Date: 2012-01-21 20:59:32 +0000 (Sat, 21 Jan 2012)
New Revision: 25332
Modified:
website/trunk/docs/en/running-a-mirror.wml
Log:
thanks to patrick, we have an nginx sample mirror config.
Modified: website/trunk/docs/en/running-a-mirror.wml
===================================================================
--- website/trunk/docs/en/running-a-mirror.wml 2012-01-21 03:42:48 UTC (rev 25331)
+++ website/trunk/docs/en/running-a-mirror.wml 2012-01-21 20:59:32 UTC (rev 25332)
@@ -80,7 +80,29 @@
</VirtualHost>
</pre>
</tt>
- <br/> <br/>
+ <br/>
+ For mirror operators that use nginx, we created a sample virtual host
+ configuration file to use:
+ <tt>
+ <pre>
+ server {
+ listen 0.1.2.3:80;
+ server_name your.example.com;
+
+ root /var/www/mirrors/torproject.org;
+ index index.html.en;
+ }
+ </pre>
+ </tt>
+ <br/>
+ If you use nginx, please ensure the text/html line in
+ <tt>/etc/ngnix/mime.types</tt> matches:
+ <tt>
+ <pre>
+ text/html en html htm shtml;
+ </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. An update frequency of six hours is recommended. Tor users everywhere will thank you.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits