Add X-Backend-Server x-header to expose web-head info for Socorro

VERIFIED FIXED

Status

VERIFIED FIXED
8 years ago
4 years ago

People

(Reporter: stephend, Assigned: jabba)

Tracking

Details

From our push-day discussion, we thought it'd be a good idea to include the X-Backend-Server (or similarly named, custom) x-header for at least the HTML assets served by Socorro's web-heads, a la AMO:

https://addons.mozilla.org/en-US/firefox/extensions/bookmarks/

GET /en-US/firefox/extensions/bookmarks/ HTTP/1.1
Host: addons.mozilla.org
<snip>

HTTP/1.1 200 OK
Server: Apache
X-Backend-Server: pm-app-amo13

Per Corey, I think this is a server-side Apache change.
See also bug 628147 (which mentions this and also other settings). 

We'd like this for both crash-stats and crash-reports.
(In reply to comment #1)
> See also bug 628147 (which mentions this and also other settings). 
> 
> We'd like this for both crash-stats and crash-reports.

Actually sorry for the spam; this is different (logging versus returning a header to the client).
If the machines are in puppet, there's an existing puppet rule to tell servers to add that header (it drops in an /etc/httpd/conf.d/hostname.conf with the instructions to do it).  Someone probably just needs to tell puppet about it for those servers.
(Assignee)

Comment 4

8 years ago
Sounds easy enough. I'll see if I can copy that bit from generic puppet to the socorro module.
Assignee: server-ops → jdow
(Assignee)

Comment 5

8 years ago
I added the hostname.conf that sets the header to the socorro-web class, so all servers should get it on their next puppet run.
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Verified FIXED:

X-Backend-Server: sp-web03
Status: RESOLVED → VERIFIED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.