Page MenuHomePhabricator

Redirect from http://wdcm.wmflabs.org/* to http://wmdeanalytics.wmflabs.org/*
Closed, ResolvedPublic

Description

We need a redirect set from

http://wdcm.wmflabs.org/*

to

http://wmdeanalytics.wmflabs.org/*

where by * we mean anything that might be found there (various WMDE dashboards are now found under http://wmdeanalytics.wmflabs.org/*).

Background: http://wdcm.wmflabs.org/* was the old domain from where our dashboards where run, from a now deprecated CloudVPS instance; the new domain, http://wmdeanalytics.wmflabs.org/* better reflects the purposes and the scope of our analytics. However, people are still used to the old, better known domain so we need a redirect until the community gets used to the change.

Please advise. Thank you.

Event Timeline

I think it would be simpler to register both domains in proxy list in horizon to a single server (currently wikidataconcepts.wikidataconcepts.eqiad.wmflabs), and edit the nginx/other web app service on that server to handle the redirection.

As I can see on https://tools.wmflabs.org/openstack-browser/project/wikidataconcepts both domains already point to the same server. https://wdcm.wmflabs.org/ gives 502 bad gateway, perhaps web app config need to be edited?

Hi @Framawiki, and thanks for a prompt response.

  • wikidataconcepts.eqiad.wmflabs is dead (deprecated; it was running Trusty, see T204695);
  • the instance where we run our dashboards from is wmde-dashboards.eqiad.wmflabs.

Now,

I think it would be simpler to register both domains in proxy list in horizon to a single server

I guess I could do that on the new wmde-dashboards.eqiad.wmflabs instance?

and edit the nginx/other web app service on that server to handle the redirection.

I am a Data Scientist for WMDE and have no idea on how to do that. If you prefer, I could share my nginx config - which was developed in cooperation with two or three people who understand web-servers better than I do - with you and then follow your suggestion on how to make it work with a re-direct that we need.

Thank you again. Please advise.

There is no process for requesting redirects like this, it would be self service. Point the domain to be redirected at your instance (ideally via the proxy) and configure your instance to return the right redirects. I think an nginx site config for it would look like this:

server {
        listen 9001;
        server_name wdcm.wmflabs.org;
        return 301 https://wmdeanalytics.wmflabs.org$request_uri;
}

with the port number being up to you

I can probably get this done, but I need to be added as an admin to the "wikidataconcepts" project https://horizon.wikimedia.org/project/member/

Addshore triaged this task as Medium priority.Feb 4 2019, 12:00 PM
Addshore moved this task from Unsorted 💣 to Blocked 🚧 on the User-Addshore board.

@Addshore Not on wikidataconcepts, but wmde-dashboards.

@Addshore Not on wikidataconcepts, but wmde-dashboards.

Yes, but the domain first has to be removed from wikidataconcepts, as it is still active there.
You should be able to find this in the proxies page of horizon for the project.
Once you remove it there you should be able to add it to the new project.

@Addshore Got it. I will ping back as soon as I remove the domain from wikidataconcepts.

@Addshore wdcm.wmflabs.org is now removed from wikidataconcepts and re-created at wmde-dashboards where it maps 3838 (Shiny server default).