Opened 4 years ago

Closed 3 years ago

#15475 closed defect (wontfix)

Enable access to historical consensus health pages

Reported by: tom Owned by:
Priority: Medium Milestone:
Component: Internal Services/Tor Sysadmin Team Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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).

Child Tickets

Change History (1)

comment:1 Changed 3 years ago by tom

Resolution: wontfix
Severity: Normal
Status: newclosed

We don't gzip things anymore, so they would work without this needing to be done.

Note: See TracTickets for help on using tickets.