[tor-mirrors] No donations from mirrors

Alain Wolf tormaster at urown.net
Wed Nov 8 15:14:36 UTC 2017


Converting the .htaccess file with http://winginx.com/en/htaccess and
including that on my mirrors Nginx configuration seems to solve the problem.

Did not very extensive testing and checking. But Nginx didn't complain
and all the donation links seem to work. Don't know about all the other
stuff in there.

So maybe a converted Nginx config file could be included in the rsync
along the original (aka .nginx-rewrites.conf) and the mirroring
instructions at https://www.torproject.org/docs/running-a-mirror.html.en
updated with a Nginx configuration which includes that file.

> For mirror operators that use nginx, we created a sample virtual host
> configuration file to use:
>
> server {
>     listen 10.10.10.10:80;
>     server_name your.example.com;
>
>     root /var/www/mirrors/torproject.org;
>     index index.html.en;
>
>     # Rewrites
>     include     /var/www/mirrors/torproject.org/.nginx-rewrites.conf;
>
>     location  /dist {
>         autoindex on;
>     }
> }
>
> If you use nginx, please ensure the text/html line in
> /etc/nginx/mime.types matches:
>
> text/html                             en html htm shtml;



On 08.11.2017 15:45, Alain Wolf wrote:
>
> I think the problem is the .htaccess file. Which is read by Apache but
> ignored by Nginx.
>
> The big banner on top works. The big green button links directly to
> torproject.org and not to the mirror site
> (https://www.torproject.org/donate/donate-pdr-hp) which in turn then
> gets redirected to donate.torproject.org/pdr.
>
> My mirror does not even have donate/donate-pdr.hp
>
> The smaller violet "Donate" button below does not. It links to
> donate/donate-button.html.en on the mirror site, which is there but has
> 0 bytes.
>
> Also the "Donate" link in the footer of the page, below "Get Involved"
> does not work. It links to donate/donate-foot.html.en on the mirror
> site, which also has zero bytes.
>
> Then there is the big yellow "DONATE" button on the Download page. Which
> has the same problem. 0 bytes in donate/donate-download.html.en.
>
> On the main torproject.org site all of those get redirect to
> https://donate.torproject.org/ by a HTTP 302 message.
>
> Tested on https://tor.zilog.es/
>
> On 08.11.2017 13:27, Paul Templeton wrote:
> > Seems fine from my mirror. > > ----- Original Message ----- > From:
> "Alain Wolf"
> <tormaster at urown.net> > To: tor-mirrors at lists.torproject.org > Sent:
> Wednesday, November 8, 2017 3:00:26 PM > Subject: [tor-mirrors] No
> donations from mirrors > > > Hi > > Mothership has setup a redirection
> to a new donation website. > > The mirrored HTML pages have now zero
> bytes. > > As mirror-servers don't have that redirection in their
> configurations, > the buttons and links return a white-screen of death.
> >> Regards. > > torproject.urown.net >
> > _______________________________________________ > tor-mirrors mailing
list > tor-mirrors at lists.torproject.org >
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-mirrors



More information about the tor-mirrors mailing list