Opened 9 years ago

Closed 9 years ago

#2056 closed defect (fixed)

metrics apache config

Reported by: weasel Owned by: weasel
Priority: Medium Milestone:
Component: Company Version:
Severity: Keywords:
Cc: karsten Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

From: Karsten Loesing <karsten.loesing@…>
Subject: Apache configuration on yatei

Hi weasel,

can you make two changes to the Apache config on yatei, please?

  1. Apache shouldn't answer requests to /graphs/* anymore, but Tomcat

should answer these. The other redirects can remain the same.

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

Thanks!
--Karsten

Child Tickets

Change History (4)

comment:1 in reply to:  description ; Changed 9 years ago by weasel

Status: newneeds_review
  1. Apache shouldn't answer requests to /graphs/* anymore, but Tomcat

should answer these. The other redirects can remain the same.

done.

  1. 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@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/

Cheers,

comment:2 in reply to:  1 ; Changed 9 years ago by karsten

Replying to 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

  1. 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@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!

comment:3 in reply to:  2 ; Changed 9 years ago by weasel

Replying to karsten:

Replying to 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

Better now?

comment:4 in reply to:  3 Changed 9 years ago by karsten

Resolution: fixed
Status: needs_reviewclosed

Replying to weasel:

Replying to karsten:

Replying to 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

Better now?

Yes! :)

Closing this task. Thanks!

Note: See TracTickets for help on using tickets.