Jump to content

Nova Resource:Redirects/Documentation

From Wikitech

Redirects is intended to provide HTTP redirects for well known URLs that used to be hosted on Cloud VPS projects but are now running on Toolforge or other Wikimedia servers.

Redirects should not be made to servers that are not under Wikimedia control. Automatically redirecting to external servers without an interstitial warning to the end user is a potential privacy violation.

This service is not needed to handle redirecting something.wmflabs.org to something.wmcloud.org. That same name on new domain redirect process is handled automatically by the proxy service when a *.wmcloud.org proxy exists and a matching *.wmflabs.org does not exist.

Requesting a new redirect

File a bug report in Phabricator

Creating a new redirect as a Redirects project admin

  1. Use Horizon's Project Puppet tab to edit the Hiera configuration and add the proxied host and new destination to the role::labs::redirector::redirects hash.
    • e.g. hatjitsu.wmcloud.org: https://hatjitsu.toolforge.org/
  2. Force a puppet run on redirects-nginx03.redirects.eqiad1.wikimedia.cloud to create the new vhost.
  3. Use Horizon to delete the proxy from the Cloud VPS project that is giving it up.
  4. Use Horizon to add the proxy to the redirects project with http://redirects-nginx03.redirects.eqiad1.wikimedia.cloud:80 as the backend.
  5. Test the redirected URL to ensure that it all works.
  6. Profit!