[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #15475 [Tor Sysadmin Team]: Enable access to historical consensus health pages
#15475: Enable access to historical consensus health pages
-------------------------------+---------------------
Reporter: tom | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor Sysadmin Team | Version:
Keywords: | Actual Points:
Parent ID: | Points:
-------------------------------+---------------------
Currently consensus health has a little arrow next to a relay to jump to
that fingerprint in the previous hour's consensus. (We store 3 weeks of
consensuses).
Clicking the arrow doesn't work, because the html files are stored gzipped
on the server. Apache must be modified to enable access to those files.
Everyone I found was using the same trick to serve compressed content
through Apache: trick Apache into sending gzip content but not compressing
it, and then manually adding the gzip header. I have this deployed on
http://utternoncesense.com like so:
{{{
<VirtualHost [my IPs]>
ServerName utternoncesense.com
ServerAlias www.utternoncesense.com
ServerAlias ipv6.utternoncesense.com
DocumentRoot /var/www/localhost/htdocs/consensus-health
<Directory "/var/www/localhost/htdocs/consensus-health">
Options -Indexes
AllowOverride All
Require all granted
</Directory>
SetOutputFilter deflate
Header set Content-Encoding gzip
<FilesMatch "consensus-health-(.+)\.html$">
SetEnv no-gzip 1
</FilesMatch>
RewriteEngine On
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule (.*\.html)$ $1.gz [L]
</VirtualHost>
}}}
A symlink from a .html to the .html.gz must be present. If the transfer
script copies symlinks as files, that would be bad (well, double the size
needlessly).
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15475>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs