
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi there: I run the new-ish mirror located at `tor.mirrors.samwhited.com` and have a quick question for any other mirror maintainers out there using Nginx. I noticed that the download link in a recent TBB announcement linked to the download page as https://torproject.org/download/download/ (which returns the page located at /download/download.html.en). After looking over the various other mirrors I noticed that many of them did not correctly mimic this behavior (including my own). The default Nginx configuration from the mirror configuration page also doesn't include anything like this. Does anyone have a decent nginx server config to mimic this? Presumably it should also work for other languages, but I've never seen a configuration example which would do that either. Best, Sam - -- Sam Whited pub 4096R/EC2C9934 SamWhited.com sam@samwhited.com 404.492.6008 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iQIcBAEBCgAGBQJQFxYCAAoJEPs5vPfsLJk01MUP/3I7BTQQMs3ZSaq8CP3qO1PL k8M/2oYXZPNLn/ytRRv89SRc+ruYMyIKX4mgLC+XUyOooG8OMdFXhs4qof34+OFq oWmP6HCsvvtBLjPgBrRXM4j+DCiZ4a6GzuvSQ3KSGsksIo05TZ1e+WzZUmjl/vU+ yrsTj9Th6G+I4wVUq7Ubql9h6WNYwuQYguc8SFNGEhSM6NeVEF4lwwooMnb+bLVV ttyNAL+fXKQ7IY6bP9Om+ls+5BvAlkTT/uRnABN5uEmrs9nCIazap18fHqBfsVVM BbUo38VMFp7I5JGssl3w3n/0t/3uKuzUyLXT2+/2lgbT+gjVyX9MhQZN75e5lNV9 RekWgaFBi7OycWYji3ZukYzFw2IgI0PLXUmPJZwDjKgdheCxCaNSQ5UZlNATrvbf RzPl7TUKjAZrlV5XnZRTYhYh8/XlaNPK0Xpys4iOytcAQbNYuyonnEACVY++eNBF EtBGZrIMZnIp0kNI7KjgW+G1zqggIaldSgsZOU5W5NK82ScjQtAR8ljLSFezQRbb joUarCLUVMHttI0fxrtsWXw0SV5zgtEYQM7wC+r6T0W+nof4kUQ/ArIdtxbpdYvo jWNvrP6+uoXZP7KSLL6r8npVZh8Jgc8tI8y0M5xOOwyLrzUiz41FhBOiIzJ5m5KU FSphja4phrq2Pppb6cNZ =F6dq -----END PGP SIGNATURE-----

On Mon, 30 Jul 2012 19:17:22 -0400 Sam Whited <sam@samwhited.com> wrote:
I noticed that the download link in a recent TBB announcement linked to the download page as https://torproject.org/download/download/ (which returns the page located at /download/download.html.en). After looking over the various other mirrors I noticed that many of them did not correctly mimic this behavior (including my own). The default Nginx configuration from the mirror configuration page also doesn't include anything like this.
You have to define html.en as an html page. The sample host config is here https://www.torproject.org/docs/running-a-mirror.html.en For the sake of future internet searches, here: 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; -- Andrew http://tpo.is/contact pgp 0x6B4D6475

On Tue, Jul 31, 2012 at 2:22 PM, Andrew Lewman <andrew@torproject.is> wrote:
For the sake of future internet searches, here:
Oops, I thought I included my config (basically the same), but I guess not. Thanks — any ideas about improving it to match the official website behavior? —Sam -- Sam Whited pub 4096R/EC2C9934 SamWhited.com sam@samwhited.com 404.492.6008

On 31.07.2012 20:22, Andrew Lewman wrote:
server { listen 0.1.2.3:80; server_name your.example.com;
root /var/www/mirrors/torproject.org; index index.html.en;
I have included here this: location ^~ /dist/ { autoindex on; } This enabled autoindex for all directorys after tor-miror.tld/dist/.
}
regards, Martin -- Email: martin89@martin89.de PGP KeyID: 0x9829FB42 http://www.martin89.de/0x9829FB42.asc www.martin89.de
participants (3)
-
Andrew Lewman
-
Martin89
-
Sam Whited