Broken CDN: videos.cdn.mozilla.net redirects to videos-real-origin.cdn.m.n

RESOLVED FIXED

Status

RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: giorgos, Assigned: atoll)

Tracking

Details

(Whiteboard: [kanban:https://webops.kanbanize.com/ctrl_board/2/3248])

(Reporter)

Description

2 years ago
Videos linked on https://careers.mozilla.org are not being served by CDN despite using CDN link on the website.

Steps to reproduce:

└─▪ curl -I https://videos.cdn.mozilla.net/serv/hr/Firefox_Monument_2014.mp4
HTTP/1.1 302 Moved Temporarily
Content-Type: text/html; charset=iso-8859-1
Content-Length: 262
Connection: keep-alive
Server: Apache
X-Backend-Server: videos-origin.webapp.scl3.mozilla.com
Date: Tue, 26 Jul 2016 16:24:00 GMT
Location: https://videos-real-origin.cdn.mozilla.net/uploads/hr/Firefox_Monument_2014.mp4
Age: 1472
X-Cache: Hit from cloudfront
Via: 1.1 86c0812ce1a102d2ac2a7840d015c43b.cloudfront.net (CloudFront)
X-Amz-Cf-Id: _RMxmcPUxVqcu7BQJYLGEJbucSNT19sFhFjvmmrX4BOb_x47jLSyOw==


New location: videos-real-origin.cdn.mozilla.net is not CDN backed.
Assignee: nobody → rsoderberg

Updated

2 years ago
Whiteboard: [kanban:https://webops.kanbanize.com/ctrl_board/2/3248]

Comment 1

2 years ago
As discussed in #ee-infra on IRC, notice that the path is changing from /serve/hr/ to /uploads/hr/ in addition to the domain change. Most likely this is an absolute redirect configured on the origin server, presumably apache, and it needs to be a relative redirect instead so that cloudfront doesn't cache the redirect to the origin domain. The video files are available under the /uploads/ path, so changing the src on the careers website to use that (https://videos.cdn.mozilla.net/uploads/hr/Firefox_Monument_2014.mp4 in this example) should avoid this issue even without apache config changes.
I'm not sure how this was originally setup, but jgmize identified the correct solution.

Content-Type: video/mp4
Content-Length: 29795908

Two consecutive requests produced:

X-Cache: Miss from cloudfront

Then:

X-Cache: Hit from cloudfront
(Reporter)

Comment 3

2 years ago
Filed PR #173 to update the links https://github.com/mozmar/lumbergh/pull/173
This was fixed, closing.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.