-----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
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;
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
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
tor-mirrors@lists.torproject.org