Opened 5 years ago

Closed 4 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:


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 like so:

<VirtualHost [my IPs]>

        DocumentRoot /var/www/localhost/htdocs/consensus-health
        <Directory "/var/www/localhost/htdocs/consensus-health">
               Options -Indexes
               AllowOverride All
               Require all granted

        SetOutputFilter deflate
        Header set Content-Encoding gzip

        <FilesMatch "consensus-health-(.+)\.html$">
                SetEnv no-gzip 1

        RewriteEngine On
        RewriteCond %{HTTP:Accept-Encoding} gzip
        RewriteCond %{REQUEST_FILENAME}.gz -f
        RewriteRule (.*\.html)$ $1.gz [L]

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