Page MenuHomePhabricator

Create redirect from partnermetrics.wmflabs.org to Toolforge
Closed, ResolvedPublic

Description

Currently on the wpx-prod-01 instance I have an Apache setting (in /etc/apache2/sites-enabled/000-default.conf) redirecting partnermetrics.wmflabs.org/mediaplaycounts to tools.wmflabs.org/mediaviews-api. I think it would be better if this were taken care by the Redirects project.

Event Timeline

(I'm not sure that Cloud-VPS is the right project, but I couldn't find any tags particular to the Redirects project.)

(old template had both tags, since VPS-Projects is a subproject phab doesn't allow both now)

Mentioned in SAL (#wikimedia-cloud) [2018-06-18T21:59:17Z] <bd808> Added BryanDavis (self) as admin to work on T197517

Mentioned in SAL (#wikimedia-cloud) [2018-06-18T22:07:10Z] <bd808> Removed BryanDavis (self) from project (T197517)

The redirects project is now handling the 302 response to send https://partnermetrics.wmflabs.org/ to https://tools.wmflabs.org/mediaviews-api. This redirect blindly appends the path from the original request to the target URL, so the mediaviews-api tool will need to handle treating https://tools.wmflabs.org/mediaviews-api/mediaplaycounts properly itself. This can probably be done in the tool's ~/.lighttpd.conf by adding a url.rewrite-if-not-file or similar config stanza.

Vvjjkkii renamed this task from Create redirect from partnermetrics.wmflabs.org to Toolforge to qsaaaaaaaa.Jul 1 2018, 1:03 AM
Vvjjkkii reopened this task as Open.
Vvjjkkii removed bd808 as the assignee of this task.
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from qsaaaaaaaa to Create redirect from partnermetrics.wmflabs.org to Toolforge.Jul 2 2018, 4:45 AM
CommunityTechBot closed this task as Resolved.
CommunityTechBot assigned this task to bd808.
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.

@Harej There does not seem to be a tool running at mediaviews-api anymore. Should we clean up this proxy or point it somewhere else?

This was replaced by the WMF Analytics endpoint that provides the same data. I think you can delete it.

This was replaced by the WMF Analytics endpoint that provides the same data. I think you can delete it.

{{Done}}