
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 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 -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJaAoEtXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1ODMzNjFDQzQ3RjU4RjJGRTVEMzFERUM3 NDk4QUQzNjFFNDA3NzFFAAoJEHSYrTYeQHceX9QQAIo37Dbms6P/a5EsPEDJEfWz 7+FQh3wZxfs3TpcNYQ2Am5rgsg3/AYR/EqjY++6EOC4idjfb+3vJ9XL3AFslFGku ylLxicM9gFRDrg875dji6CFEOYFCfm3zpXzZhBxJYFnPzbE1SIXwDTcQT+eTbsvM 2XUwty3/JVv18Q9T7JByYyOQQ/wlFaFAfZyzkZ7Ezs1IvGFkjR1Liqy5sDNjF2Ik I9EsSgjIjzNu1IqzIFgbTRSRbvRty7lddBhjdErSrRvMUvc0mxXnUjfnQL7Ynvut za5kOWdU3E4SrdRyoKXzxMIh47wSFKOzmCDz9OnRMqV4rxXdQYivZI07N+S8COF1 Fc3zWljzVlSCJo/Lf94YkglZeii5h41UOgo1IFhXG2/jFcBBL3t/LOjIj+XLXUrf n9LBXUUVhnpwvOBsef5wTO/xLpKkA0vKQJqzG5Sp8Txqx8ju0sVa+gJBD8X1+ghb Y4DRRSo9VHozW2xEwJ0wJmRXBfqoEstTrAcwicIjNUIiG6oFZ3zq4OpFudl9AHm9 PwhruGNZ2qIVGtvXQIyLhtaRufAtoHJpjFdPBLsGlqPDUIZaHQki3xRgQ6sN9m7b bs4eeLwbS70COlU8BVZ2wTgqfvFUtR6qfmmvgvljiRN48ZbqF7vf8/iWK/YREvwI BXj73gJ0bzQp/CHVyBNP =7aRX -----END PGP SIGNATURE-----

Seems fine from my mirror. ----- Original Message ----- From: "Alain Wolf" <tormaster@urown.net> To: tor-mirrors@lists.torproject.org Sent: Wednesday, November 8, 2017 3:00:26 PM Subject: [tor-mirrors] No donations from mirrors -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 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 -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJaAoEtXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1ODMzNjFDQzQ3RjU4RjJGRTVEMzFERUM3 NDk4QUQzNjFFNDA3NzFFAAoJEHSYrTYeQHceX9QQAIo37Dbms6P/a5EsPEDJEfWz 7+FQh3wZxfs3TpcNYQ2Am5rgsg3/AYR/EqjY++6EOC4idjfb+3vJ9XL3AFslFGku ylLxicM9gFRDrg875dji6CFEOYFCfm3zpXzZhBxJYFnPzbE1SIXwDTcQT+eTbsvM 2XUwty3/JVv18Q9T7JByYyOQQ/wlFaFAfZyzkZ7Ezs1IvGFkjR1Liqy5sDNjF2Ik I9EsSgjIjzNu1IqzIFgbTRSRbvRty7lddBhjdErSrRvMUvc0mxXnUjfnQL7Ynvut za5kOWdU3E4SrdRyoKXzxMIh47wSFKOzmCDz9OnRMqV4rxXdQYivZI07N+S8COF1 Fc3zWljzVlSCJo/Lf94YkglZeii5h41UOgo1IFhXG2/jFcBBL3t/LOjIj+XLXUrf n9LBXUUVhnpwvOBsef5wTO/xLpKkA0vKQJqzG5Sp8Txqx8ju0sVa+gJBD8X1+ghb Y4DRRSo9VHozW2xEwJ0wJmRXBfqoEstTrAcwicIjNUIiG6oFZ3zq4OpFudl9AHm9 PwhruGNZ2qIVGtvXQIyLhtaRufAtoHJpjFdPBLsGlqPDUIZaHQki3xRgQ6sN9m7b bs4eeLwbS70COlU8BVZ2wTgqfvFUtR6qfmmvgvljiRN48ZbqF7vf8/iWK/YREvwI BXj73gJ0bzQp/CHVyBNP =7aRX -----END PGP SIGNATURE----- _______________________________________________ tor-mirrors mailing list tor-mirrors@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-mirrors

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 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@urown.net> > To: tor-mirrors@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 > -----BEGIN PGP SIGNATURE-----
iQJ8BAEBCgBmBQJaAxhuXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1ODMzNjFDQzQ3RjU4RjJGRTVEMzFERUM3 NDk4QUQzNjFFNDA3NzFFAAoJEHSYrTYeQHceDQ8P/j1+lClj8mvcT5zu0+SjFH+L yxDzH5FbFpw/IHCqLJygWiL1AFxS9PjxxRdaGw1fqUCQXEe7WrKEXIV94IEBxAgs O4bW8cEXUkJr4pSfjJOuHGECt6t0ocE+6O9pzyzUO13K6Ty/GdaQjii53joTU0PZ DMvwzYfLoiPVIJ4YSSoefV06vxCPt5Nus/QJ8X8Fbt7J3wyO9sxPF8d/+CJ2J4la CIKeM0zHZIcQJuicqfG+ZypvIdn0RWCpdhAEPXUu8S/iwIwY292kbtdmcUBGAV7o dGYHGHFEgWQWQrle7wGAYloNGYl6TX9Pm2iS75CFzK+DsRabMV9SyhUTJNkaXqhC 37H44daMyihvA7vebtol4aNdJZdLQOuhlC0QNcH6fJIsK2jcWNipJNt8nryjRR2U YIlcQqkZrn9CYD4Qn8RXvj2khQVqSvI7HeZJV4F9BUajeCCYsWd/RNQH/SjUrMOZ Ti4pLE6gMHG6EpYazwlZmgzEp2grrPDacWSc7l3AyyntfepmnXXX+hEbK9i8V2DY pjHvA14UW8WvjE5yNrQy/SoSl+6mCNq7npYnax3wbrTBXVNxokbuI0neemWSjBQ6 7IAe7BkwxwQbjxPLuRshhAqUTVXa5rRzwrh7IUf2ix8pWdSEf4BGsGpGs4ohbT8S 439fkL1pNe6Q8V0bjgQZ =W4v3 -----END PGP SIGNATURE-----

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@urown.net> > To: tor-mirrors@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@lists.torproject.org > https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-mirrors

On the other hand, automatically including configuration statements uploaded from a third party in to my server might not be the brightest idea. Just include the necessary statements it in the docs. On 08.11.2017 16:14, Alain Wolf wrote:
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@urown.net> > To: tor-mirrors@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
participants (2)
-
Alain Wolf
-
Paul Templeton