From b85ab915dd3d53fbb616297340ad450ce2be4427 Mon Sep 17 00:00:00 2001 From: Andrew Lewman Date: Sat, 21 Jan 2012 20:59:32 +0000 Subject: [PATCH] thanks to patrick, we have an nginx sample mirror config. --- docs/en/running-a-mirror.wml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/docs/en/running-a-mirror.wml b/docs/en/running-a-mirror.wml index 580a4428..1f26104e 100644 --- a/docs/en/running-a-mirror.wml +++ b/docs/en/running-a-mirror.wml @@ -80,7 +80,29 @@ </VirtualHost> -

+
+ For mirror operators that use nginx, we created a sample virtual host + configuration file to use: + +
+    server {
+    	listen 0.1.2.3:80;
+  	server_name your.example.com;
+
+  	root /var/www/mirrors/torproject.org;
+	index index.html.en;
+    }
+    
+
+
+ If you use nginx, please ensure the text/html line in + /etc/ngnix/mime.types matches: + +
+    text/html                             en html htm shtml;
+    
+
+

Please ensure that you keep your mirror updated (we suggest automating this task with something like 'cron'). Our website, source code and binary releases change often. An update frequency of six hours is recommended. Tor users everywhere will thank you.