[tor-bugs] #2056 [Company]: metrics apache config

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Oct 13 11:43:00 UTC 2010


#2056: metrics apache config
---------------------+------------------------------------------------------
 Reporter:  weasel   |       Owner:  weasel      
     Type:  defect   |      Status:  needs_review
 Priority:  normal   |   Milestone:              
Component:  Company  |     Version:              
 Keywords:           |      Parent:              
---------------------+------------------------------------------------------

Comment(by karsten):

 Replying to [comment:1 weasel]:
 > > 1. Apache shouldn't answer requests to /graphs/* anymore, but Tomcat
 > > should answer these. The other redirects can remain the same.
 >
 > done.

 Does Apache require a restart for this change to become effective? The
 following link still works for me and is served by Apache, not by Tomcat:

 https://metrics.torproject.org/graphs/gettor/gettor-total.png

 > > 2. Apache should set the MIME type for files in /csv/* to
 > > text/comma-separated-values or whatever is appropriate so that
 browsers
 > > display them as text files. If it's simpler to configure, Apache can
 set
 > > the MIME type for all files ending in .csv to that MIME type.
 >
 > It already sends the correct content type:
 > | weasel at evi:~$ wget --no-check-certificate -S
 https://metrics.torproject.org/csv/exit.csv
 > ...
 > |   HTTP/1.1 200 OK
 > |   Date: Wed, 13 Oct 2010 08:43:45 GMT
 > |   Server: Apache
 > |   Last-Modified: Wed, 13 Oct 2010 06:45:04 GMT
 > |   ETag: "2cda857-82b1-49279eeec3c00"
 > |   Accept-Ranges: bytes
 > |   Content-Length: 33457
 > |   Keep-Alive: timeout=15, max=100
 > |   Connection: Keep-Alive
 > |   Content-Type: text/csv
 > ^^^^^^^^^^^^^^^^^^^^^^^^^^
 > | Length: 33457 (33K) [text/csv]
 >
 > Whether or not browsers open that in the browser is a local config
 issue.
 > Also see https://addons.mozilla.org/en-US/firefox/addon/8207/

 Aha! I didn't know that. That solves the problem then.

 Thanks!

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2056#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list