Enable access to historical consensus health pages
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).
issue